mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Merge pull request #34955 from nextcloud/backport/34934/stable25
[stable25] Read encrypted session data again on reopen
This commit is contained in:
commit
1a1a810cf2
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue