diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index 285b6fd796037..400dc251cfd84 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -103,6 +103,7 @@ public function remove(string $key) { public function clear() { $this->invoke('session_unset'); $this->regenerateId(); + $this->invoke('session_write_close'); $this->startSession(true); $_SESSION = []; }