diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Session/CryptoSessionData.php | 7 |
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; } /** |