To quote the cookie definition, Expires = Optional. Schedules the expiration
of a cookie variable.  Can be specified as a date (as in 10/09/99), number
of DAYS (as in 10, 100), now, or Never.  Using NOW deletes the cookie.

ie, store the date time in a cookie, compare it and time it out based on
that, otherwise, you have a 1 day cookie.

-----Original Message-----
From: Gordon Burns [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 13, 2000 12:53 PM
To: CF-Talk
Subject: Cookie timeouts


I thought that this worked.


<CFCOOKIE NAME="timer" VALUE="OK" EXPIRES="#CreateTimeSpan(0,1,0,0)#">

It does not! but this does

<CFCOOKIE NAME="timer" VALUE="OK" EXPIRES="#CreateTimeSpan(1,0,0,0)#">

which sets the cookie to expire after 1 day or 24 hours.

I want the cookie to expire after 1 hour and cause the user to
login again. I may need to alter to 30 mins later.

What have I done wrong?

TIA

Gordon
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to