diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2016-05-12 12:09:13 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-05-12 12:09:13 +0200 |
commit | 8b6bb0a4269fee94c0e0842e6a001d70d4af25be (patch) | |
tree | 93ad24cb61c6b7aeadf8ffc99498b1b4c031f586 /lib/base.php | |
parent | b34bacd0718fa24c67a8ef0aa6f3b824a9b525bb (diff) | |
download | nextcloud-server-8b6bb0a4269fee94c0e0842e6a001d70d4af25be.tar.gz nextcloud-server-8b6bb0a4269fee94c0e0842e6a001d70d4af25be.zip |
Log user out correctly if max session lifetime is reached (#24552)
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 16ce0973a95..cc0429af110 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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()); |