Fixed session close on api
This commit is contained in:
parent
de7fe26e65
commit
4fe9bdb9a5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue