Revision 1161,
524 bytes
checked in by amuller, 15 years ago
(diff) |
Ticket #559 - Forçar expiração do cookie
|
Rev | Line | |
---|
[1040] | 1 | <?php |
---|
[1061] | 2 | session_id( $_COOKIE[ 'sessionid' ] ); |
---|
| 3 | session_start( ); |
---|
[1040] | 4 | |
---|
[1061] | 5 | $sess = $_SESSION[ 'phpgw_session' ]; |
---|
| 6 | $connection_id = "{$sess['session_id']}{$sess['session_ip']}{$_SERVER[ 'HTTP_USER_AGENT' ]}"; |
---|
[1040] | 7 | |
---|
| 8 | if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id) |
---|
| 9 | { |
---|
[1161] | 10 | setcookie("PHPSESSID","",0); |
---|
| 11 | setcookie ("sessionid","",0); |
---|
[1040] | 12 | echo lang("An important error has occured with your login, please contact your system administrator"); |
---|
| 13 | exit; |
---|
| 14 | } |
---|
| 15 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.