summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-11-23 20:42:30 +0100
committerGitHub <noreply@github.com>2022-11-23 20:42:30 +0100
commit1a1a810cf2a48824325a3c49d6473cd79e8f9d03 (patch)
treeafdd1e617e48e1d86b7d07c689d2bfbc45e994e2 /lib
parent695ceba17cb33f4479ab520bb8e63d3cb6fed93d (diff)
parentc6b2d08e67cdeda5691d26b117ebf398526d9ed6 (diff)
downloadnextcloud-server-1a1a810cf2a48824325a3c49d6473cd79e8f9d03.tar.gz
nextcloud-server-1a1a810cf2a48824325a3c49d6473cd79e8f9d03.zip
Merge pull request #34955 from nextcloud/backport/34934/stable25
[stable25] 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;
}
/**