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

Question about cfcookie

Status
Not open for further replies.

volcano

Programmer
Aug 29, 2000
136
HK
Hello, I have a question about CFCOOKIE. As far as I know the unit of the attribute "EXPIRES" is day. If I want to expire the cookie in ten minutes, how to do this then?

Thank you!
volcano [sig][/sig]
 
Check out the Createtimespan function. It uses a format of Createtimespan(days, hours, minutes, seconds) and converts it to fractions or multiples of a day (putting in 1440 minutes would evaluate to 1). So for expiring a cookie in ten minutes, you would simply say:

expires="#Createtimespan(0, 0, 10, 0)#"

Try that out.

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top