Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I cause a cookie to expire in 2 hours?

Status
Not open for further replies.

AlbertAguirre

Programmer
Nov 21, 2001
273
0
0
US
Sorry I'm an ASP newbie. Dont know how to make it expire in 2 hours...
 
response.cookies("cookie_name") = cookie_value
response.cookies("cookie_name").expires = DateAdd("h", 2, Now())
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top