The admin [staffpanel] and administrator [settingspanel] cookies do not expire and after logout they are not deleted.
Perhaps someone has another opinion, but i think the must bo corrected.
in /admin/index.php cahnge:
PHP Code:
setcookie('staffpanel','allowed');
to
PHP Code:
$expires = time() + 1800;
setcookie('staffpanel','allowed', $expires, '/admin/');
in /administator/index.php cahnge:
PHP Code:
setcookie('settingspanel','allowed');
to
PHP Code:
$expires = time() + 1800;
setcookie('settingspanel','allowed', $expires, '/administrator/');
in /include/functions.php change:
PHP Code:
function logoutcookie()
{
setcookie("c_secure_uid", "", 0x7fffffff, "/");
setcookie("c_secure_pass", "", 0x7fffffff, "/");
setcookie("c_secure_login", "", 0x7fffffff, "/");
}
to
PHP Code:
function logoutcookie()
{
setcookie("c_secure_uid", "", 0x7fffffff, "/");
setcookie("c_secure_pass", "", 0x7fffffff, "/");
setcookie("c_secure_login", "", 0x7fffffff, "/");
setcookie("staffpanel", "", 0x7fffffff, "/admin/");
unset($_COOKIE['staffpanel']);
setcookie("settingspanel", "", 0x7fffffff, "/administrator/");
unset($_COOKIE['settingspanel']);
}