From 45ec4324926f306e51c234eb7b9451b1afc753a6 Mon Sep 17 00:00:00 2001 From: Claus-Justus Heine Date: Mon, 21 Feb 2022 00:04:47 +0100 Subject: [PATCH] Don't call session_start() when PHP session is still or already open. Signed-off-by: Claus-Justus Heine --- lib/private/Session/Internal.php | 1 + 1 file changed, 1 insertion(+) 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 = []; }