开发者

ASP.NET MVC getting cookie name of a specific domain

开发者 https://www.devze.com 2023-02-01 12:20 出处:网络
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 val

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

精彩评论

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