From 997c6810f4893410a19eeadd87455cd68af6518f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 11 Dec 2024 18:57:20 +0100 Subject: [PATCH] revert change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Müller --- src/SessionManager.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/SessionManager.php b/src/SessionManager.php index b59f26af..47d742aa 100644 --- a/src/SessionManager.php +++ b/src/SessionManager.php @@ -9,6 +9,8 @@ use function array_key_exists; use function array_merge; +use function constant; +use function defined; use function headers_sent; use function is_array; use function iterator_to_array; @@ -91,6 +93,12 @@ public function sessionExists() return true; } + $sid = defined('SID') ? constant('SID') : false; + + if ($sid !== false && $this->getId()) { + return true; + } + if (headers_sent()) { return true; }