Exemple #1
0
 /**
  * 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();
         }
     }
 }
Exemple #2
0
 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();
     }
 }
Exemple #3
0
 /**
  * If request is ajax, do not update auth status
  * @override 
  */
 protected function updateAuthStatus()
 {
     if (Yii::app()->request->isAjaxRequest) {
         return;
     }
     parent::updateAuthStatus();
 }