Hi all,
I'm developing an ASP.NET web application. I'm storing information in cookies like so...
If Request.Cookies("userInfo") Is Nothing Then
Dim cookie As New HttpCookie("userInfo")
cookie.Expires = DateTime.MaxValue
cookie.Values.Add("Key1", "value 1")
cookie.Values.Add("Key1", "value 2")
Response.AppendCookie(cookie)
End If
After this cookie is created, I modify the cookie by overwriting it, like everyone suggests. I know that my code is correct for this, as this worked fine when I tested it on my development box. However, when I upload my application to my host's server, all of a sudden when I attempt to modify a cookie, instead of overwriting the previous one, it creates a new one with the exact same name.
Has anyone run into this problem? Any help would be greatly appreciated.
Thanks,
Justin
http://www.universityauction.net