Skip to content

Commit

Permalink
destroy the session before starting a new one - prevents php warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 committed Feb 13, 2018
1 parent da8ea60 commit ee3c057
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Session/Internal.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public function remove($key) {
public function clear() {
session_unset();
$this->regenerateId();
@session_destroy();
@session_start();
$_SESSION = [];
}
Expand Down

0 comments on commit ee3c057

Please sign in to comment.