mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 17:48:40 -04:00
Merge pull request #35723 from nextcloud/bugfix/35708
fix: Make sure to reopen session before cleaning
This commit is contained in:
commit
761221bc80
1 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ class CryptoSessionData implements \ArrayAccess, ISession {
|
|||
* Reset and recreate the session
|
||||
*/
|
||||
public function clear() {
|
||||
$reopened = $this->reopen();
|
||||
$requesttoken = $this->get('requesttoken');
|
||||
$this->sessionValues = [];
|
||||
if ($requesttoken !== null) {
|
||||
|
|
@ -159,6 +160,9 @@ class CryptoSessionData implements \ArrayAccess, ISession {
|
|||
}
|
||||
$this->isModified = true;
|
||||
$this->session->clear();
|
||||
if ($reopened) {
|
||||
$this->close();
|
||||
}
|
||||
}
|
||||
|
||||
public function reopen(): bool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue