Skip to content

Commit

Permalink
Try fix nextcloud#31248 by flushing session before re-opening it.
Browse files Browse the repository at this point in the history
  • Loading branch information
rotdrop committed Mar 5, 2022
1 parent 2e82425 commit 77c18a5
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 @@ -103,6 +103,7 @@ public function remove(string $key) {
public function clear() {
$this->invoke('session_unset');
$this->regenerateId();
$this->invoke('session_write_close');
$this->startSession(true);
$_SESSION = [];
}
Expand Down

0 comments on commit 77c18a5

Please sign in to comment.