public void setCookieValue(string key, string value) { HttpCookie cookie = null; string cookieName = "whateverTheCookieNameIs"; if (Request.Cookies[cookieName] != null ) { cookie = Request.Cookies[cookieName]; cookie.Values[key] = value; Response.AppendCookie(cookie); } }
Comment