本文整理汇总了PHP中AuthService::clearRememberCookie方法的典型用法代码示例。如果您正苦于以下问题:PHP AuthService::clearRememberCookie方法的具体用法?PHP AuthService::clearRememberCookie怎么用?PHP AuthService::clearRememberCookie使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AuthService
的用法示例。
在下文中一共展示了AuthService::clearRememberCookie方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: disconnect
/**
* Clear the session
* @static
* @return void
*/
static function disconnect()
{
if (isset($_SESSION["AJXP_USER"])) {
AuthService::clearRememberCookie();
AJXP_Logger::logAction("Log Out");
unset($_SESSION["AJXP_USER"]);
if (ConfService::getCoreConf("SESSION_SET_CREDENTIALS", "auth")) {
AJXP_Safe::clearCredentials();
}
}
}
示例2: disconnect
/**
* Clear the session
* @static
* @return void
*/
public static function disconnect()
{
if (isset($_SESSION["AJXP_USER"]) || isset(self::$currentUser)) {
$user = isset($_SESSION["AJXP_USER"]) ? $_SESSION["AJXP_USER"] : self::$currentUser;
$userId = $user->id;
AJXP_Controller::applyHook("user.before_disconnect", array($user));
AuthService::clearRememberCookie();
AJXP_Logger::info(__CLASS__, "Log Out", "");
unset($_SESSION["AJXP_USER"]);
if (isset(self::$currentUser)) {
unset(self::$currentUser);
}
if (ConfService::getCoreConf("SESSION_SET_CREDENTIALS", "auth")) {
AJXP_Safe::clearCredentials();
}
AJXP_Controller::applyHook("user.after_disconnect", array($userId));
}
}