diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index 87dd5ed60145c..cae139018f896 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -107,6 +107,7 @@ public function clear() { $this->reopen(); $this->invoke('session_unset'); $this->regenerateId(); + $this->invoke('session_write_close'); $this->startSession(true); $_SESSION = []; }