Skip to content

Commit

Permalink
Merge pull request #31286 from rotdrop/bugfix/dont-start-session-when…
Browse files Browse the repository at this point in the history
…-session-is-already-open

Don't call session_start() when PHP session is still or already open.
  • Loading branch information
szaimen authored Apr 17, 2023
2 parents b952066 + 45ec432 commit d87cc20
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 @@ -107,6 +107,7 @@ public function clear() {
$this->reopen();
$this->invoke('session_unset');
$this->regenerateId();
$this->invoke('session_write_close');
$this->startSession(true);
$_SESSION = [];
}
Expand Down

0 comments on commit d87cc20

Please sign in to comment.