MDL-44299 resolve collision with session_gc() in PHP 5.6

This commit is contained in:
Petr Škoda 2014-03-12 10:43:30 +08:00
parent 0a489777fc
commit 1985ef8342

View File

@ -203,19 +203,6 @@ function session_kill_user($userid) {
\core\session\manager::kill_user_sessions($userid);
}
/**
* Session garbage collection
* - verify timeout for all users
* - kill sessions of all deleted users
* - kill sessions of users with disabled plugins or 'nologin' plugin
*
* @deprecated since 2.6
*/
function session_gc() {
debugging('session_gc() is deprecated, use \core\session\manager::gc() instead', DEBUG_DEVELOPER);
\core\session\manager::gc();
}
/**
* Setup $USER object - called during login, loginas, etc.
*