Beispiel #1
0
 /**
  * Метод для действий после выхода из системы:
  *
  * @return parent::afterLogout()
  */
 protected function afterLogout()
 {
     Yii::app()->cache->clear('loggedIn' . $this->getId());
     return parent::afterLogout();
 }
Beispiel #2
0
 /**
  * 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();
 }
Beispiel #3
0
 protected function afterLogout()
 {
     return parent::afterLogout();
 }
Beispiel #4
0
 /**
  *
  */
 protected function afterLogout()
 {
     $this->user = null;
     $this->id = null;
     parent::afterLogout();
 }