/** * Close current session of the user * * @param ModuleUser_EntityUser|null $oUser */ public function CloseSession($oUser = null) { if (!$oUser) { $oUser = $this->oUserCurrent; } if (!$this->oSession) { $oSession = $oUser->getSession(); } else { $oSession = $this->oSession; } if ($oUser) { $this->oMapper->CloseSession($oSession); E::ModuleCache()->CleanByTags(array('user_session_update')); } }