Changeset 2392
- Timestamp:
- 03/30/10 17:52:58 (14 years ago)
- Location:
- branches/2.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/expressoMail1_2/js/connector.js
r1926 r2392 340 340 if ( typeof data == 'undefined' ) 341 341 data = oxmlhttp.responseText; 342 // Verify user session 343 if(data && data.nosession){ 344 // If hold session is setted, dont reload the page ... 345 if(hold_session) { 346 if(typeof(write_msg) == "function" && typeof(get_lang) == "function") 347 write_msg(get_lang("your session could not be verified.")); 348 else 349 alert("your session could not be verified."); 350 } 351 else 352 window.location.reload(); 353 354 delete _thisObject.requests[id]; 355 _thisObject.requests[id] = null; 356 return false; 357 } 342 358 if(debug_controller) { 343 359 document.getElementById("debug_controller").innerHTML += oxmlhttp.responseText; -
branches/2.1/header.session.inc.php
r2179 r2392 11 11 if (empty($_SESSION['phpgw_session']['session_id']) || ($_SESSION['connection_db_info']['user_auth'] && implode('',$_SESSION['connection_db_info']['user_auth']) !== $connection_id)) 12 12 { 13 if($_SESSION['connection_db_info']['user_auth'] )13 if($_SESSION['connection_db_info']['user_auth'] && !strstr($_SERVER['SCRIPT_URL'],"/controller.php")) { 14 14 error_log( '[ INVALID SESSION ] >>>>' . implode('',$_SESSION['connection_db_info']['user_auth']) . '<<<< - >>>>' . $connection_id . '<<<<', 0 ); 15 setcookie("PHPSESSID","",0); 16 setcookie ("sessionid","",0); 17 unset($_SESSION); 15 @require_once dirname( __FILE__ ) . '/logout.php'; 16 } 17 18 setcookie(session_name(),"",0); // Removing session cookie. 19 unset($_SESSION); // Removing session values. 20 // From ExpressoAjax response "nosession" 21 if(strstr($_SERVER['SCRIPT_URL'],"/controller.php")){ 22 echo serialize(array("nosession" => true)); 23 exit; 24 } 25 } 26 else{ 27 // From ExpressoAjax update session_dla (datetime last access). 28 if(strstr($_SERVER['SCRIPT_URL'],"/controller.php")) 29 $_SESSION['phpgw_session']['session_dla'] = time(); 18 30 } 19 31 ?>
Note: See TracChangeset
for help on using the changeset viewer.