use this very same method to force cookies to expire when the
broswer is closed. I allow it to run only once, the first time
<CFAPPLICATION> is encountered. This keeps cookies from
being set with every page call. If a user has the "Cookie Warning"
enabled, they only have to accept cookies once.
I would like to here of other ideas too.
Thanks!
Clint
On 1 Mar 2001, at 21:13, Gary Morin wrote:
> I do mean concurrent and not consecutive.
>
> The original use of the code was to whip session variables when the
> user closed the browser, so when a new user opened a fresh browser
> within a session timeout, the session variables would be cleared
> (which answers the earlier question, session variables are common
> across multiple browser instances, doh!!).
>
> And the more elegant way is?....
>
> Cheers
>
> Gary
>
> >
> ><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>
> >
------------------------------------
Clint R. Tillerson
Meteorologist/Programmer
Pacific Environmental Services, Inc.
5001 South Miami Blvd.
PO Box 12077
RTP, NC 27709
(919) 941-0333
Fax: (919) 941-0234
------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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