summaryrefslogtreecommitdiffstats
path: root/lib/private/Session/CryptoSessionData.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Session/CryptoSessionData.php')
-rw-r--r--lib/private/Session/CryptoSessionData.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php
index 58020edf66d..4e0b852cb35 100644
--- a/lib/private/Session/CryptoSessionData.php
+++ b/lib/private/Session/CryptoSessionData.php
@@ -129,7 +129,11 @@ class CryptoSessionData implements \ArrayAccess, ISession {
* Reset and recreate the session
*/
public function clear() {
+ $requesttoken = $this->get('requesttoken');
$this->sessionValues = [];
+ if ($requesttoken !== null) {
+ $this->set('requesttoken', $requesttoken);
+ }
$this->isModified = true;
$this->session->clear();
}