Index: branches/RC/core/units/users/users_event_handler.php =================================================================== diff -u -r10156 -r10294 --- branches/RC/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 10156) +++ branches/RC/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 10294) @@ -215,6 +215,7 @@ $this->Application->StoreVar('super_admin', 1); } + $this->Application->HandleEvent($dummy, 'session-log:OnStartSession'); $this->processLoginRedirect($event, $password); return true; } @@ -251,6 +252,8 @@ $this_login = (int)$this->Application->RecallPersistentVar('ThisLogin'); $this->Application->StorePersistentVar('LastLogin', $this_login); $this->Application->StorePersistentVar('ThisLogin', adodb_mktime()); + + $this->Application->HandleEvent($dummy, 'session-log:OnStartSession'); } else { $object->Load(-2); @@ -381,6 +384,8 @@ $sync_manager =& $this->Application->recallObjectP('UsersSyncronizeManager', null, Array(), 'InPortalSyncronize'); $sync_manager->performAction('LogoutUser'); + $this->Application->HandleEvent($dummy, 'session-log:OnEndSession'); + $session =& $this->Application->recallObject('Session'); $session->SetField('PortalUserId', -2); $this->Application->SetVar('u.current_id', -2);