Index: trunk/core/units/users/users_event_handler.php =================================================================== diff -u -N -r2299 -r2310 --- trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 2299) +++ trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 2310) @@ -3,6 +3,21 @@ class UsersEventHandler extends InpDBEventHandler { + function OnSessionExpire() + { + if( $this->Application->IsAdmin() ) + { + $location = $this->Application->BaseURL().ADMIN_DIR.'/index.php?expired=1'; + header('Location: '.$location); + exit; + } + else + { + $t = $this->Application->GetVar('t'); + $this->Application->Redirect($t ? $t : 'index'); + } + } + /** * Checks user data and logs it in if allowed *