public static bool IsCookieExist(string key) { HttpCookie httpCookie = HttpContext.Current.Request.Cookies[key]; return httpCookie != null && !string.IsNullOrEmpty(httpCookie.Value); }