What's the API for read/write cookie

  • Thread starter Thread starter feng
  • Start date Start date
F

feng

I need to create cookies in user's machine from my ASP.Net
code and I also need to read them. How do I do that? What
is the API (name space?) for this in APS.Net?

Thanks
 
You can write cookies with the Response Object
Response.Cookies("cookieName") = myObject

You can read cookies with the Request Object
myObj = Request.Cookies("cookieName")
 
Back
Top