source: trunk/header.session.inc.php @ 1161

Revision 1161, 524 bytes checked in by amuller, 15 years ago (diff)

Ticket #559 - Forçar expiração do cookie

Line 
1<?php
2        session_id( $_COOKIE[ 'sessionid' ] );
3        session_start( );
4
5        $sess = $_SESSION[ 'phpgw_session' ];
6        $connection_id = "{$sess['session_id']}{$sess['session_ip']}{$_SERVER[ 'HTTP_USER_AGENT' ]}";
7
8        if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id)
9        {
10                setcookie("PHPSESSID","",0);
11                setcookie ("sessionid","",0);
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.