From 31d9efd97d9da09605d4329457ee218cba48f82f Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 10 Aug 2007 08:51:41 +0000 Subject: Simplified code + removed debug log --- program/include/main.inc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'program/include') diff --git a/program/include/main.inc b/program/include/main.inc index 4b8aa68d5..19d421441 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -234,10 +234,7 @@ 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; } -- cgit v1.2.3