Read cookie expiry date?

G

Guest

How does one read and write the cookie expiration date. At the moment my
code is returning a value BUT a garbled value:
'//Write cookie...
Response.Cookies("Propsect").Expires = Date() + 1

'//Read cookie...
ExpDate = Request.cookies("Propsect")
Response.write "Prospect expiry date: " & expDate & "<br>"


Result: u%5Fname=k

?

Any ideas?
Thanks
Jason
 
D

Dave Anderson

How does one read and write the cookie expiration date. At the moment
my code is returning a value BUT a garbled value:
'//Write cookie...
Response.Cookies("Propsect").Expires = Date() + 1

'//Read cookie...
ExpDate = Request.cookies("Propsect")
Response.write "Prospect expiry date: " & expDate & "<br>"

Cookie exipration dates are write-only. You cannot read them.


--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top