Revision 2038,
581 bytes
checked in by amuller, 14 years ago
(diff) |
Ticket #922 - Corrigido problema no headersession ao expirar sessao.
|
Rev | Line | |
---|
[1040] | 1 | <?php |
---|
[2038] | 2 | if ( isset( $_COOKIE[ 'sessionid' ] ) ) |
---|
| 3 | session_id( $_COOKIE[ 'sessionid' ] ); |
---|
| 4 | |
---|
[1061] | 5 | session_start( ); |
---|
[1040] | 6 | |
---|
[1061] | 7 | $sess = $_SESSION[ 'phpgw_session' ]; |
---|
[1464] | 8 | $connection_id = "{$sess['session_id']}{$sess['session_ip']}".substr($_SERVER[ 'HTTP_USER_AGENT' ],0,199); |
---|
[1040] | 9 | |
---|
[1464] | 10 | |
---|
[1040] | 11 | if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id) |
---|
| 12 | { |
---|
[1161] | 13 | setcookie("PHPSESSID","",0); |
---|
| 14 | setcookie ("sessionid","",0); |
---|
[1040] | 15 | echo lang("An important error has occured with your login, please contact your system administrator"); |
---|
| 16 | exit; |
---|
| 17 | } |
---|
| 18 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.