> I've used this a number of times.
> 
> <cfif isdefined("cookie.CFID")
>       <cfcookie name="CFID" value="#cookie.CFID#">
> </cfif>
> <cfif isdefined("cookie.CFTOKEN")
>       <cfcookie name="CFTOKEN" value="#cookie.CFTOKEN#">
> </cfif>
>
> This basically copies the user session cookies back onto themselves,
> but with no expiration date. This turns them into a session cookie,
> which are destroyed when the browser is closed.

As a slight improvement, you might consider not setting the cookies with
CFAPPLICATION/Application.cfc in the first place, then creating the cookies
if they don't exist. This way, you create the cookies once instead of on
each page request (which is what you're currently doing).

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

This email has been processed by SmoothZap - www.smoothwall.net


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274391
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to