diff options
author | thomascube <thomas@roundcube.net> | 2006-08-06 15:55:11 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-08-06 15:55:11 +0000 |
commit | aade7b98044ad4abb9021452688ec3af57f36acb (patch) | |
tree | 10e255b2eb423490fa70781897277849f5ffc6df /program/include | |
parent | 27a398c18aec787b836ef12066f20d55065045d3 (diff) |
Finalized 0.1beta2 releasev0.1-beta2
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/main.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index efac8b2d2..b7f28c4e4 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -170,9 +170,9 @@ function rcmail_authenticate_session() { $now = mktime(); $valid = ($_COOKIE['sessauth'] == rcmail_auth_hash(session_id(), $_SESSION['auth_time'])); - - // renew auth cookie every 5 minutes - if (!$valid || ($now-$_SESSION['auth_time'] > 300)) + + // renew auth cookie every 5 minutes (only for GET requests) + if (!$valid || ($_SERVER['REQUEST_METHOD']!='POST' && $now-$_SESSION['auth_time'] > 300)) { $_SESSION['auth_time'] = $now; setcookie('sessauth', rcmail_auth_hash(session_id(), $now)); |