PDA

View Full Version : set cookie for only 3 minutes


Gurrutello
06-19-03, 05:54 PM
hello
i wold like to set a cookie for just 3 minutes, but with out using sessions.¿ its possible ?
response.cookies("my_cookie_name").expire ' only 3 minutes

thank you for your help

Shane
06-19-03, 06:38 PM
Try:
Response.Cookies("cookiename").expires=Dateadd("n", 3, Now())

Gurrutello
06-19-03, 06:49 PM
thank you it works!!!!:D

Shane
06-19-03, 06:51 PM
Originally posted by Gurrutello
thank you it works!!!!:D

Not a problem.