Fixed session close on api

This commit is contained in:
Luis Calvo 2020-12-30 18:39:56 +01:00
parent de7fe26e65
commit 4fe9bdb9a5
1 changed files with 1 additions and 1 deletions

View File

@ -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();