本文整理汇总了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();
}