Skip to content

Commit

Permalink
Merge pull request #21585 from owncloud/bakport-21575
Browse files Browse the repository at this point in the history
[stable8.2] Use ISession::clear
  • Loading branch information
Vincent Petry committed Jan 11, 2016
2 parents 693067e + ba66805 commit a047983
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/base.php
Expand Up @@ -441,9 +441,7 @@ public static function initSession() {
if (isset($_COOKIE[session_name()])) {
setcookie(session_name(), '', time() - 42000, $cookie_path);
}
session_unset();
session_destroy();
session_start();
$session->clear();
}

$session->set('LAST_ACTIVITY', time());
Expand Down

0 comments on commit a047983

Please sign in to comment.