diff options
author | thomascube <thomas@roundcube.net> | 2007-11-19 15:08:40 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-11-19 15:08:40 +0000 |
commit | 3b7a5fbaa495d29e2dc9e467453a59867160f9a8 (patch) | |
tree | cfc74c0c9d5f65b693fac40b4a08598e5a8ba76b /program/include | |
parent | 1fb2c8e64bb28f1b7ece71b5d3a92150a62a9ecb (diff) |
Correctly set session cookie lifetime if not 0
Diffstat (limited to 'program/include')
-rw-r--r-- | program/include/session.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/include/session.inc b/program/include/session.inc index 8a98fadde..a29eabba9 100644 --- a/program/include/session.inc +++ b/program/include/session.inc @@ -173,8 +173,8 @@ function sess_regenerate_id() session_id($random); $cookie = session_get_cookie_params(); - setcookie(session_name(), "", time() -3600); - setcookie(session_name(), $random, $cookie['lifetime'], $cookie['path']); + setcookie(session_name(), "", time() - 3600); + setcookie(session_name(), $random, $cookie['lifetime'] ? time() + $cookie['lifetime'] : 0, $cookie['path']); return true; } |