Good code. We use something just like that, so our cookies expire when all the
browser windows are closed.
Also, we use client.CFID and client.CFTOKEN so we don't have to lock. CF makes CFID
and CFTOKEN available in both session and client scope.
Chris Norloff
---------- Original Message ----------------------------------
from: Dave Watts <[EMAIL PROTECTED]>
><!--- all of this goes in Application.cfm --->
><cfapplication name="foo" setclientcookies="false" sessionmanagement="true"
>..>
>
><cfif not IsDefined("Cookie.CFID")>
> <cflock scope="Session" type="readonly" ...>
> <cfcookie name="CFID" value="#Session.CFID#">
> <cfcookie name="CFTOKEN" value="#Session.CFTOKEN#">
> </cflock>
></cfif>
>
>Dave Watts, CTO, Fig Leaf Software
>http://www.figleaf.com/
>voice: (202) 797-5496
>fax: (202) 797-5444
>
>
______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists