aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php
index d6ef01ccbf7..71c04206f6a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -450,11 +450,8 @@ class OC {
if ($session->exists('LAST_ACTIVITY') && (time() - $session->get('LAST_ACTIVITY') > $sessionLifeTime)) {
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), null, -1, self::$WEBROOT ? : '/');
- unset($_COOKIE[session_name()]);
}
- session_unset();
- session_destroy();
- session_start();
+ $session->clear();
}
$session->set('LAST_ACTIVITY', time());