开发者

ASP.NET MVC getting cookie name of a specific domain

We will have have only dynamic named cookie on the domain. how can i get the name of the cookie.

After getting the name i have to Add a list to the cookie, which will hav开发者_开发知识库e other values as well already added.


You could look at the Request.Cookies property which represents a collection of all cookies sent by the client browser. You may loop through the cookies and look for the one you are interested in by using the Name property. Once you find it you may modify it's Value property. As an alternative you could manipulate the Values property.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜