Merge branch 'ent-11884-fixed-session-php' into 'develop'

fixed session pandora_enterprise#11884

See merge request artica/pandorafms!6336
This commit is contained in:
vgilc 2023-08-14 11:29:55 +00:00
commit 12b8e50822
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);