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