Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-11-03 10:39:59 +0300
committerJulius Härtl <jus@bitgrid.net>2022-11-03 15:20:30 +0300
commit2ff840b5c151c3659ee6de29f52e9d8ea77cfaed (patch)
tree6b9d29dc9a6790b4c26bc68b2b5f25d2851b50e6
parentc00e590a4f0bd1d7308c5f7b24ca55e3e9c4df78 (diff)
Read encrypted session data again on reopen
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--lib/private/Session/CryptoSessionData.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php
index b01887e39e2..5c39ebb1e91 100644
--- a/lib/private/Session/CryptoSessionData.php
+++ b/lib/private/Session/CryptoSessionData.php
@@ -163,7 +163,11 @@ class CryptoSessionData implements \ArrayAccess, ISession {
}
public function reopen(): bool {
- return $this->session->reopen();
+ $reopened = $this->session->reopen();
+ if ($reopened) {
+ $this->initializeSession();
+ }
+ return $reopened;
}
/**