> I am looking at this code from Hal's website and don't see how it will
kill
> a session if they leave.
> <cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
>   <cfset cfid_local = Cookie.CFID>
>   <cfset cftoken_local = Cookie.CFTOKEN>
>   <cfcookie name="CFID" value="#cfid_local#">
>   <cfcookie name="CFTOKEN" value="#cftoken_local#">
> </cfif>

When using the CFCOOKIE tag, if you do not specify a expire attribute, it
will die once the browser session has ended (i.e. the browser gets closed
out).

--=@ greg @=--
----- Original Message -----
From: "Robert Everland" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 2:00 PM
Subject: Session Variable Logout from Hal Helms


> I am looking at this code from Hal's website and don't see how it will
kill
> a session if they leave.
> <cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
>   <cfset cfid_local = Cookie.CFID>
>   <cfset cftoken_local = Cookie.CFTOKEN>
>   <cfcookie name="CFID" value="#cfid_local#">
>   <cfcookie name="CFTOKEN" value="#cftoken_local#">
> </cfif>
>
> The way it looks to me is that the cookie is continuosly filled in. So if
> they left it would already have been filled in. Anyone shed any light on
> what I obviously am not seeing or understanding.
>
> Robert Everland III
> Web Developer
> Dixon Ticonderoga
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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

Reply via email to