From 4fe9bdb9a53c60605adcb39aaf7bd0afbd33f6c6 Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Wed, 30 Dec 2020 18:39:56 +0100 Subject: [PATCH] Fixed session close on api --- pandora_console/include/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/api.php b/pandora_console/include/api.php index 944c3a710c..eccad7ad70 100644 --- a/pandora_console/include/api.php +++ b/pandora_console/include/api.php @@ -311,7 +311,7 @@ if ($correctLogin) { } // Logout. -if (session_status() === PHP_SESSION_ACTIVE) { +if (session_status() !== PHP_SESSION_DISABLED) { $_SESSION = []; // Could give a warning if no session file is created. Ignore. @session_destroy();