fixed session pandora_enterprise#11884

This commit is contained in:
daniel 2023-08-14 13:25:37 +02:00
parent 95b1daf8c3
commit 97f25afef7
1 changed files with 5 additions and 1 deletions

View File

@ -4088,7 +4088,11 @@ function config_prepare_session()
}
if ($update_cookie === true) {
if ((int) $user['session_max_time_expire'] > 0 && time() < $user['session_max_time_expire']) {
if (isset($user) === true
&& isset($user['session_max_time_expire']) === true
&& (int) $user['session_max_time_expire'] > 0
&& time() < $user['session_max_time_expire']
) {
$sessionMaxTimeout = $user['session_max_time_expire'];
} else {
$sessionMaxTimeout = (time() + $sessionCookieExpireTime);