From d8376c593ea4f01c3cc60d92d24b9495dd292fb2 Mon Sep 17 00:00:00 2001 From: MasahikoSada <55680718+MasahikoSada@users.noreply.github.com> Date: Thu, 2 Sep 2021 17:36:07 +0900 Subject: [PATCH] Update Internal.php I have an error in the nextcloud.log after log out every time. session_start(): A session had already been started - ignoring at /home/mydomain/public/lib/private/Session/Internal.php#208 --- lib/private/Session/Internal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php index 285b6fd796037..4966bb3d55953 100644 --- a/lib/private/Session/Internal.php +++ b/lib/private/Session/Internal.php @@ -103,7 +103,9 @@ public function remove(string $key) { public function clear() { $this->invoke('session_unset'); $this->regenerateId(); - $this->startSession(true); + if(!isset($_SESSION)){ + $this->startSession(true); + } $_SESSION = []; }