Changeset 1063 in subversion
- Timestamp:
- Feb 13, 2008 12:26:47 AM (5 years ago)
- Location:
- trunk/roundcubemail/program/include
- Files:
-
- 2 edited
-
main.inc (modified) (1 diff)
-
session.inc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/include/main.inc
r1032 r1063 57 57 // load configuration 58 58 $CONFIG = rcmail_load_config(); 59 60 // set session domain 61 if (isset($CONFIG['session_domain']) && !empty($CONFIG['session_domain'])) { 62 ini_set('session.cookie_domain', $CONFIG['session_domain']); 63 } 59 64 60 65 // set session garbage collecting time according to session_lifetime -
trunk/roundcubemail/program/include/session.inc
r920 r1063 173 173 174 174 session_id($random); 175 $cookie = session_get_cookie_params(); 176 setcookie(session_name(), "", time() - 3600); 177 setcookie(session_name(), $random, $cookie['lifetime'] ? time() + $cookie['lifetime'] : 0, $cookie['path']); 175 176 $cookie = session_get_cookie_params(); 177 $_lifetime = $cookie['lifetime'] ? time() + $cookie['lifetime'] : 0; 178 179 setcookie(session_name(), '', time() - 3600); 180 setcookie(session_name(), $random, $_lifetime, $cookie['path'], 181 $cookie['domain']); 178 182 179 183 return true;
Note: See TracChangeset
for help on using the changeset viewer.
