When an error occurs I would like to loop through the collection of session
variables. However sometime the session variables have timed out so I
receive the error below. What can I do check this. It seems like a chicken
egg problem since the collection doesn't exists but it loops through it.
Thanks for any help...
Neil
Error Diagnostic Information
An error occurred while evaluating the expression:
#SESSION[ThisField]#
Error near line 71, column 29.
----------------------------------------------------------------------------
----
The member "AUTH_PASSWORD" in dimension 1 of object "SESSION" cannot be
found. Please, modify the member name.
----- Original Message -----
From: "Lord, Heath" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, December 13, 2000 3:00 PM
Subject: RE: Cookie timeouts
> 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists