diff --git a/pandora_console/index.php b/pandora_console/index.php index 825d00bc86..7ff9900150 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -981,13 +981,10 @@ if (isset($_GET['bye'])) { enterprise_hook('saml_logout'); } - if (session_status() !== PHP_SESSION_NONE) { - $_SESSION = []; - session_destroy(); - header_remove('Set-Cookie'); - setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/'); - } - + $_SESSION = []; + session_destroy(); + header_remove('Set-Cookie'); + setcookie(session_name(), $_COOKIE[session_name()], (time() - 4800), '/'); // Process logout. include 'general/logoff.php';