release-0.6
till 17 years ago
parent 95ebbc985a
commit 306175855a

@ -235,7 +235,8 @@ function rcmail_authenticate_session()
$valid = $CONFIG['ip_check'] ? $_SERVER['REMOTE_ADDR'] == $SESS_CLIENT_IP : true;
// check session filetime
if (!empty($CONFIG['session_lifetime']) && isset($SESS_CHANGED) && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < time())
if (!empty($CONFIG['session_lifetime']) && isset($SESS_CHANGED)
&& $SESS_CHANGED + $CONFIG['session_lifetime']*60 < time())
$valid = false;
return $valid;

Loading…
Cancel
Save