I got the hang on cookie dictionaries and all that, but am still a bit fuzzy on working with expiration times. How do I make a cookie expire after 2 or 3 minutes?
Printable View
I got the hang on cookie dictionaries and all that, but am still a bit fuzzy on working with expiration times. How do I make a cookie expire after 2 or 3 minutes?
Get the expiry date
expDate = Day(now) & "/" & Month(now) & "/" & Year(now) & " " & Hour(now) & ":" & Minute(now) + 2 & ":" & Second(now)
Then its Response.Cookies("mycookie").Expires = expDate
Should expire your cookie in 2 minutes.
:p :mad: :cool: :eek: :D ;) :o :)