Cookies and Active Server Pages
Posted on 1997-07-08
I am using Cookies with Active Server Pages to save client information. I use the Response.Cookies("name")="Joe" to write the cookie and Name=Request.Cookies("name") to read the cookie. Everything works fine accessing the cookie info within a session, but if the client closes his browser and comes back, the cookie info is lost. I've played with the Response.Cookies.Expires=nn code, which makes the cookies not work at all.
So how does one write a semi-permanent cookie that can be accessed at a later time with ASP/VBScript? Or at least one that expires at a given time in the future?
Thanks - firstname.lastname@example.org