I am developing ASP.NET application, and I saw that HttpCookie class has bot Value (String)
and Values (NameValueCollection)
properties. It supports both ways. I would like to know which way is "better" and more accepted. Any drawbacks and limitation on any of the approaches? I know about Browser Cookie Limits and that it will have an impact on the decision.
Any favorable approach or baseline? Something like:
"Under 30 cookies keep single value cookies, if you need more change to multi value."
This is just made-up guide line, I am hoping to get something like this as an answer with trustable source.
As a sample I looked at Google and the cookies on my Chrome browser look like this:
From 17 cookies set there are only 2 which could be multi-value (key-value) pairs. Does that mean we should favor single value cookies as long as we can do that?
What else to take into consideration to define "better"?
Aucun commentaire:
Enregistrer un commentaire