| | |
| | | | program/include/session.inc | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2005, RoundCube Dev, - Switzerland | |
| | | | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | sess_destroy(session_id()); |
| | | |
| | | session_id($random); |
| | | $cookie = session_get_cookie_params(); |
| | | setcookie(session_name(), $random, $cookie['lifetime'], $cookie['path']); |
| | | |
| | | $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']); |
| | | |
| | | return true; |
| | | } |