Use ISession::clear
The native approach using the PHP calls will not work properly with the cryptowrapper and thus this code is effectively doing nothing at the moment.
This commit is contained in:
parent
580deb09f8
commit
a58ca89e7f
|
@ -450,11 +450,8 @@ class OC {
|
||||||
if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {
|
if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {
|
||||||
if (isset($_COOKIE[session_name()])) {
|
if (isset($_COOKIE[session_name()])) {
|
||||||
setcookie(session_name(), null, -1, self::$WEBROOT ? : '/');
|
setcookie(session_name(), null, -1, self::$WEBROOT ? : '/');
|
||||||
unset($_COOKIE[session_name()]);
|
|
||||||
}
|
}
|
||||||
session_unset();
|
$session->clear();
|
||||||
session_destroy();
|
|
||||||
session_start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$session->set('LAST_ACTIVITY', time());
|
$session->set('LAST_ACTIVITY', time());
|
||||||
|
|
Loading…
Reference in New Issue