summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-11-03 17:26:31 +0100
committerGitHub <noreply@github.com>2022-11-03 17:26:31 +0100
commit4da550c569e1072ddda327b15ec61e561d912522 (patch)
tree9717440a458e00cf2a8bb9c13b1919151f55c223 /lib
parent2e83a21cd2b2d2a167f3368e087a11ac95e127a3 (diff)
parentc412821606c91d9befc4b6557aeef1ab6873fcfd (diff)
downloadnextcloud-server-4da550c569e1072ddda327b15ec61e561d912522.tar.gz
nextcloud-server-4da550c569e1072ddda327b15ec61e561d912522.zip
Merge pull request #34934 from nextcloud/bugfix/noid/session-reopen-read
Read encrypted session data again on reopen
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Session/CryptoSessionData.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php
index b01887e39e2..df810d5b30c 100644
--- a/lib/private/Session/CryptoSessionData.php
+++ b/lib/private/Session/CryptoSessionData.php
@@ -143,7 +143,6 @@ class CryptoSessionData implements \ArrayAccess, ISession {
$reopened = $this->reopen();
$this->isModified = true;
unset($this->sessionValues[$key]);
- $this->session->remove(self::encryptedSessionName);
if ($reopened) {
$this->close();
}
@@ -163,7 +162,11 @@ class CryptoSessionData implements \ArrayAccess, ISession {
}
public function reopen(): bool {
- return $this->session->reopen();
+ $reopened = $this->session->reopen();
+ if ($reopened) {
+ $this->initializeSession();
+ }
+ return $reopened;
}
/**