Cookie maintain in ASP.NET
I want to record the single cookie for maintain the quantity of a product and all product. how i can do this in c#.
are their any way to do this wh开发者_如何学Goen i can check the existence of product in cookie. are someone have the code for it.
thanks
Creating a cookie:
HttpCookie cookie = new HttpCookie("name", "value");
Request.Cookies.Add(cookie);
Getting the cookie value:
string cookie value = Response.Cookies["name"].Value;
精彩评论