diff options
-rw-r--r-- | program/include/main.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index 792a316cc..5cd1e779d 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -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; |