Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Clears the intermediate user cookie.
 /// </summary>
 public static void ClearCookie()
 {
     CookieStatics.ClearCookie(cookieName);
 }
Exemplo n.º 3
0
        internal static bool CookieExists()
        {
            var cookie = CookieStatics.GetCookie(cookieName);

            return(cookie != null && cookie.Value == cookieValue);
        }