diff options
author | Simon L <szaimen@e.mail.de> | 2023-04-17 20:14:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-17 20:14:53 +0200 |
commit | d87cc208bbf3b9c3801196712fc9453aab955702 (patch) | |
tree | 000c59e909019a58c87376cbd511401f0ffe12f0 /lib/private | |
parent | b9520661406bc514ac16f11aeb85b1980d62f581 (diff) | |
parent | 45ec4324926f306e51c234eb7b9451b1afc753a6 (diff) | |
download | nextcloud-server-d87cc208bbf3b9c3801196712fc9453aab955702.tar.gz nextcloud-server-d87cc208bbf3b9c3801196712fc9453aab955702.zip |
Merge pull request #31286 from rotdrop/bugfix/dont-start-session-when-session-is-already-open
Don't call session_start() when PHP session is still or already open.
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Session/Internal.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index 87dd5ed6014..cae139018f8 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -107,6 +107,7 @@ class Internal extends Session { $this->reopen(); $this->invoke('session_unset'); $this->regenerateId(); + $this->invoke('session_write_close'); $this->startSession(true); $_SESSION = []; } |