psychlapse
New Member
In ASP, I could write a cookie with both an application name and a cookie name such as <BR><BR>Response.Cookies("example.com")("name") = "Alan"<BR>Response.Cookies("example.com")("age") = "39"<BR>Response.Cookies("example.com")("gender") = "Male" <BR>Response.Cookies("example.com").Expires = Now() + 1<BR><BR><BR>How I read and write these types of cookies in ASP.NET?<BR><BR>How can I read this cookie if it was written in ASP?<BR><BR>Is there any way to read cookies that were left from other sites?<BR><BR>Thank you very very very much!!!<BR><BR>Anthonyhttpcontext.Current.Request.Cookies.Item("cookie")("key")Thank you! <BR><BR>However, please note that in C#, there does not seem to be an Item or Items property or method. What should I use?<BR><BR>Anthony<BR>I still need help with this problem (for C#.) Please help!<BR><BR>AnthonyI haven't done much c#, but in vb there is something like request.cookies("cookiename").value<BR><BR>Also, I don't think it is possible to get a cookie from another site. That being possible in an earlier version of ASP was a security hole that MS patched.Thanks for the info! I much appreciate it!