mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-31 23:20:43 +02:00
still error, why
This commit is contained in:
parent
4434e7d217
commit
67e383375e
1 changed files with 6 additions and 2 deletions
|
@ -14,7 +14,11 @@ class Admin
|
||||||
global $db_pass, $config;
|
global $db_pass, $config;
|
||||||
$enable_session_timeout = $config['enable_session_timeout'];
|
$enable_session_timeout = $config['enable_session_timeout'];
|
||||||
if ($enable_session_timeout) {
|
if ($enable_session_timeout) {
|
||||||
$session_timeout_duration = intval($config['session_timeout_duration']) * 60; // Convert minutes to seconds
|
$timeout = 0;
|
||||||
|
if($config['session_timeout_duration']){
|
||||||
|
$timeout = intval($config['session_timeout_duration']);
|
||||||
|
}
|
||||||
|
$session_timeout_duration = $timeout * 60; // Convert minutes to seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_SESSION['aid']) && isset($_SESSION['aid_expiration']) && $_SESSION['aid_expiration'] > time()) {
|
if (isset($_SESSION['aid']) && isset($_SESSION['aid_expiration']) && $_SESSION['aid_expiration'] > time()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue