private static void SetItemInCookie(string item, string key) { HttpCookie cookie = new HttpCookie(key, item); HttpContext.Current.Response.Cookies.Add(cookie); }