diff options
author | thomascube <thomas@roundcube.net> | 2007-08-10 08:27:40 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-08-10 08:27:40 +0000 |
commit | 719a257f0c8fd750a4984ed56273dc653565729e (patch) | |
tree | 2707636618edff63d691180a99a48cbdda350703 /program/include/main.inc | |
parent | 4b9efbb9f49911b17bde2d46b86df825e987101e (diff) |
Some bugfixes, security issues + minor improvements
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index aa1de9754..4b8aa68d5 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -234,6 +234,9 @@ function rcmail_authenticate_session() // check session filetime if (!empty($CONFIG['session_lifetime']) && isset($SESS_CHANGED) && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < time()) $valid = false; + + if (!$valid) + write_log('timeouts', $_SESSION + array('SESS_CLIENT_IP' => $SESS_CLIENT_IP, 'SESS_CHANGED' => $SESS_CHANGED, 'COOKIE' => $_COOKIE)); return $valid; } |