mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
system: we cannot set session timeout to "0" anymore #2177
This commit is contained in:
parent
6a6e77c3d3
commit
819dc79b8a
@ -140,7 +140,7 @@ function session_auth(&$Login_Error)
|
||||
}
|
||||
|
||||
/* If session timeout isn't set, we don't mark sessions stale */
|
||||
if (!isset($config['system']['webgui']['session_timeout'])) {
|
||||
if (empty($config['system']['webgui']['session_timeout'])) {
|
||||
/* Default to 4 hour timeout if one is not set */
|
||||
if ($_SESSION['last_access'] < (time() - 14400)) {
|
||||
$_GET['logout'] = true;
|
||||
@ -148,8 +148,6 @@ function session_auth(&$Login_Error)
|
||||
} else {
|
||||
$_SESSION['last_access'] = time();
|
||||
}
|
||||
} else if (intval($config['system']['webgui']['session_timeout']) == 0) {
|
||||
$_SESSION['last_access'] = time();
|
||||
} else {
|
||||
/* Check for stale session */
|
||||
if ($_SESSION['last_access'] < (time() - ($config['system']['webgui']['session_timeout'] * 60))) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user