/** * updateAuthStatus * * @access public * @return void */ public function updateAuthStatus() { if (!$this->isGuest) { parent::updateAuthStatus(); $timeOut = Yii::app()->getSession()->getTimeout(); if ($this->isGuest) { Yii::app()->session->destroy(); } } }
protected function updateAuthStatus() { if (!Ibos::app()->request->getIsAjaxRequest()) { if ($this->account["allowshare"] != 1 && !$this->getIsGuest()) { $criteria = array("condition" => sprintf("`uid` = %d", $this->uid)); $session = Session::model()->fetch($criteria); if ($session && $session["sid"] != Ibos::app()->setting->get("sid")) { Ibos::app()->getRequest()->getCookies()->remove($this->getStateKeyPrefix()); Ibos::app()->getSession()->destroy(); } } parent::updateAuthStatus(); } }
/** * If request is ajax, do not update auth status * @override */ protected function updateAuthStatus() { if (Yii::app()->request->isAjaxRequest) { return; } parent::updateAuthStatus(); }