mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 01:34:53 +02:00
session_destroy(); inside removeCookie()
This commit is contained in:
parent
f9fe261e55
commit
5bc273a9dd
1 changed files with 0 additions and 2 deletions
|
@ -25,7 +25,6 @@ class Admin
|
|||
$isValid = self::validateToken($_SESSION['aid'], $_COOKIE['aid']);
|
||||
if (!$isValid) {
|
||||
self::removeCookie();
|
||||
session_destroy();
|
||||
_alert(Lang::T('Token has expired. Please log in again.'), 'danger', "admin");
|
||||
return 0;
|
||||
}
|
||||
|
@ -35,7 +34,6 @@ class Admin
|
|||
// Session expired, log out the user
|
||||
elseif ($enable_session_timeout && $_SESSION['aid_expiration'] <= time()) {
|
||||
self::removeCookie();
|
||||
session_destroy();
|
||||
_alert(Lang::T('Session has expired. Please log in again.'), 'danger', "admin");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue