本文整理匯總了PHP中CWebUser::afterLogout方法的典型用法代碼示例。如果您正苦於以下問題:PHP CWebUser::afterLogout方法的具體用法?PHP CWebUser::afterLogout怎麽用?PHP CWebUser::afterLogout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CWebUser
的用法示例。
在下文中一共展示了CWebUser::afterLogout方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: afterLogout
/**
* Метод для действий после выхода из системы:
*
* @return parent::afterLogout()
*/
protected function afterLogout()
{
Yii::app()->cache->clear('loggedIn' . $this->getId());
return parent::afterLogout();
}
示例2: 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();
}
示例3: afterLogout
protected function afterLogout()
{
return parent::afterLogout();
}
示例4: afterLogout
/**
*
*/
protected function afterLogout()
{
$this->user = null;
$this->id = null;
parent::afterLogout();
}