コード例 #1
0
ファイル: YWebUser.php プロジェクト: sherifflight/yupe
 /**
  * Метод для действий после выхода из системы:
  *
  * @return parent::afterLogout()
  */
 protected function afterLogout()
 {
     Yii::app()->cache->clear('loggedIn' . $this->getId());
     return parent::afterLogout();
 }
コード例 #2
0
ファイル: WebUser.php プロジェクト: uiDeveloper116/webstore
 /**
  * Called after the logout routine is performed by Yii for any additional housecleaning.
  * We use it to remove the cart from the session
  */
 protected function afterLogout()
 {
     //Only run this if we've really destroyed our session
     //Otherwise we keep the cartid in session because of payment jumper pages
     if (Yii::app()->getSession()->IsStarted == false) {
         Yii::log("Releasing cart", 'info', 'application.' . __CLASS__ . "." . __FUNCTION__);
         Yii::app()->shoppingcart->releaseCart();
     }
     parent::afterLogout();
 }
コード例 #3
0
ファイル: WebUser.php プロジェクト: apa-narola/yiimoduledemo
 protected function afterLogout()
 {
     return parent::afterLogout();
 }
コード例 #4
0
ファイル: WebUser.php プロジェクト: ChristopheBrun/hLib
 /**
  *
  */
 protected function afterLogout()
 {
     $this->user = null;
     $this->id = null;
     parent::afterLogout();
 }