aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Session
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-11-03 08:39:59 +0100
committerJulius Härtl <jus@bitgrid.net>2022-11-03 13:20:30 +0100
commit2ff840b5c151c3659ee6de29f52e9d8ea77cfaed (patch)
tree6b9d29dc9a6790b4c26bc68b2b5f25d2851b50e6 /lib/private/Session
parentc00e590a4f0bd1d7308c5f7b24ca55e3e9c4df78 (diff)
downloadnextcloud-server-2ff840b5c151c3659ee6de29f52e9d8ea77cfaed.tar.gz
nextcloud-server-2ff840b5c151c3659ee6de29f52e9d8ea77cfaed.zip
Read encrypted session data again on reopen
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Session')
-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;
}
/**