diff options
author | thomascube <thomas@roundcube.net> | 2008-09-25 13:30:18 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-09-25 13:30:18 +0000 |
commit | cefd1d8c913aa81ddce83e9de7f5bfb22aa4b2d9 (patch) | |
tree | 695d794292a1468ddfdfb3812f2be408c43c0017 /program/include/session.inc | |
parent | cc4b36b143fbcdaa1895a732c54eb19a55b953cf (diff) |
DRY: set (secure) cookies using rcmail::setcookie() + set session.only_use_cookies
Diffstat (limited to 'program/include/session.inc')
-rw-r--r-- | program/include/session.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/program/include/session.inc b/program/include/session.inc index ad66f0c40..f9b7f86a4 100644 --- a/program/include/session.inc +++ b/program/include/session.inc @@ -183,9 +183,7 @@ function rcube_sess_regenerate_id() $cookie = session_get_cookie_params(); $lifetime = $cookie['lifetime'] ? time() + $cookie['lifetime'] : 0; - setcookie(session_name(), '', time() - 3600); - setcookie(session_name(), $random, $lifetime, $cookie['path'], $cookie['domain'], - $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off')); + rcmail::setcookie(session_name(), $random, $lifetime); return true; } |