Changeset 2075


Ignore:
Timestamp:
02/25/10 14:57:34 (14 years ago)
Author:
niltonneto
Message:

Ticket #922 - Corrigido problema ao expirar sessão de usuário.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/header.session.inc.php

    r1469 r2075  
    11<?php 
    2         session_id( $_COOKIE[ 'sessionid' ] ); 
     2        if ( isset( $_COOKIE[ 'sessionid' ] ) ) 
     3                session_id( $_COOKIE[ 'sessionid' ] ); 
     4 
    35        session_start( ); 
    46 
     
    911        if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id) 
    1012        { 
     13                error_log( '[ NOT VALIDATED SESSION ] >>>>' . implode('',$_SESSION['connection_db_info']['user_auth']) . '<<<< - >>>>' . $connection_id . '<<<<', 0 ); 
    1114                setcookie("PHPSESSID","",0); 
    12                 setcookie ("sessionid","",0); 
    13                 echo lang("An important error has occured with your login, please contact your system administrator");   
     15                setcookie ("sessionid","",0);    
     16                require_once dirname( __FILE__ ) . '/logout.php'; 
    1417                exit; 
    1518        } 
Note: See TracChangeset for help on using the changeset viewer.