开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜