Log user out correctly if max session lifetime is reached (#24552)

This commit is contained in:
Christoph Wurst 2016-05-12 12:09:13 +02:00 committed by Thomas Müller
parent b34bacd071
commit 8b6bb0a426
1 changed files with 1 additions and 1 deletions

View File

@ -438,7 +438,7 @@ class OC {
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), null, -1, self::$WEBROOT ? : '/');
}
$session->clear();
\OC::$server->getUserSession()->logout();
}
$session->set('LAST_ACTIVITY', time());