Changeset 2179


Ignore:
Timestamp:
03/07/10 09:47:57 (14 years ago)
Author:
niltonneto
Message:

Ticket #922 - Forçar expirar sessão ao invalidar a mesma.

File:
1 edited

Legend:

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

    r2076 r2179  
    99 
    1010 
    11         if ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id) 
     11        if (empty($_SESSION['phpgw_session']['session_id']) || ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id)) 
    1212        { 
    13                 error_log( '[ NOT VALIDATED SESSION ] >>>>' . implode('',$_SESSION['connection_db_info']['user_auth']) . '<<<< - >>>>' . $connection_id . '<<<<', 0 ); 
     13                if($_SESSION['connection_db_info']['user_auth']) 
     14                        error_log( '[ INVALID SESSION ] >>>>' . implode('',$_SESSION['connection_db_info']['user_auth']) . '<<<< - >>>>' . $connection_id . '<<<<', 0 ); 
    1415                setcookie("PHPSESSID","",0); 
    1516                setcookie ("sessionid","",0);    
    16                 require_once dirname( __FILE__ ) . '/logout.php'; 
    17                 exit; 
     17                unset($_SESSION); 
    1818        } 
    1919?> 
Note: See TracChangeset for help on using the changeset viewer.