diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-12-20 17:25:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 17:25:09 +0100 |
commit | 761221bc80d01cd6f79f4e6ce4ba3fc298547ac1 (patch) | |
tree | e2ec18a16e54908e684452e0c0d943506f80c66b /lib | |
parent | 13d5426893b4a5d7f0e81707d832e4d5b8f5cb06 (diff) | |
parent | a6761d76ea5d8103fffd6eabd6e402f528ffcb2f (diff) | |
download | nextcloud-server-761221bc80d01cd6f79f4e6ce4ba3fc298547ac1.tar.gz nextcloud-server-761221bc80d01cd6f79f4e6ce4ba3fc298547ac1.zip |
Merge pull request #35723 from nextcloud/bugfix/35708
fix: Make sure to reopen session before cleaning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Session/CryptoSessionData.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php index df810d5b30c..1eb6987fc18 100644 --- a/lib/private/Session/CryptoSessionData.php +++ b/lib/private/Session/CryptoSessionData.php @@ -152,6 +152,7 @@ class CryptoSessionData implements \ArrayAccess, ISession { * Reset and recreate the session */ public function clear() { + $reopened = $this->reopen(); $requesttoken = $this->get('requesttoken'); $this->sessionValues = []; if ($requesttoken !== null) { @@ -159,6 +160,9 @@ class CryptoSessionData implements \ArrayAccess, ISession { } $this->isModified = true; $this->session->clear(); + if ($reopened) { + $this->close(); + } } public function reopen(): bool { |