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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timeout Cookie in Hours rather than Days 1

Status
Not open for further replies.

ElEye

IS-IT--Management
Nov 17, 2001
187
US
Hi, Gurus:

Response.Cookies("Login").Expires = Now() + 30
Means it will timeout in 30 days.

How can I do this so that it will timeout in 8 hours instead? Dave [idea]
[]
 
How about:
Code:
Response.Cookies("Login").Expires = (DateAdd("h","8", Now))
Should add 8 hours to current time :)
-Tarwn ------------ My Little Dictionary ---------
Reverse Engineering - The expensive solution to not paying for proper documentation
 
Response.Cookies("Login").Expires = DateAdd("h", 8, Now)
This would timeout in 8 hours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top