本文整理匯總了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));
}
}