session_destroy(); inside removeCookie()
This commit is contained in:
parent
f9fe261e55
commit
5bc273a9dd
@ -25,7 +25,6 @@ class Admin
|
|||||||
$isValid = self::validateToken($_SESSION['aid'], $_COOKIE['aid']);
|
$isValid = self::validateToken($_SESSION['aid'], $_COOKIE['aid']);
|
||||||
if (!$isValid) {
|
if (!$isValid) {
|
||||||
self::removeCookie();
|
self::removeCookie();
|
||||||
session_destroy();
|
|
||||||
_alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin");
|
_alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -35,7 +34,6 @@ class Admin
|
|||||||
// Session expired, log out the user
|
// Session expired, log out the user
|
||||||
elseif ($enable_session_timeout && $_SESSION['aid_expiration'] <= time()) {
|
elseif ($enable_session_timeout && $_SESSION['aid_expiration'] <= time()) {
|
||||||
self::removeCookie();
|
self::removeCookie();
|
||||||
session_destroy();
|
|
||||||
_alert(Lang::T('Session has expired. Please log in again.'), 'danger', "admin");
|
_alert(Lang::T('Session has expired. Please log in again.'), 'danger', "admin");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user