public static string GetValue(string name) { HttpCookie cookie = HttpContext.Current.Request.Cookies[name]; if (cookie != null) { return cookie.Value; } return null; }