/// <summary> /// Sets the intermediate user cookie. /// </summary> public static void SetCookie() { // The intermediate user cookie is secure to make it harder for unauthorized users to access intermediate installations, which often are placed on the // Internet with no additional security. CookieStatics.SetCookie(cookieName, cookieValue, DateTime.Now.AddMonths(1), true, true); }
/// <summary> /// Clears the intermediate user cookie. /// </summary> public static void ClearCookie() { CookieStatics.ClearCookie(cookieName); }
internal static bool CookieExists() { var cookie = CookieStatics.GetCookie(cookieName); return(cookie != null && cookie.Value == cookieValue); }