Merge pull request #34955 from nextcloud/backport/34934/stable25

[stable25] Read encrypted session data again on reopen
This commit is contained in:
blizzz 2022-11-23 20:42:30 +01:00 committed by GitHub
commit 1a1a810cf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
/**