>>>> <cfif structKeyExists(cookie, "CFID") AND structKeyExists(cookie, >>>> "CFTOKEN")> >>>> <cfcookie name="CFID" value="#cookie.cfid#" /> >>>> <cfcookie name="CFTOKEN" value="#cookie.cftoken#" /> >>>> </cfif> >>> OK, that works, but I don't get exactly what it's doing. >> >> It replaces the two standard CF-generated cookies which don't expire >> with two that will expire immediately the browser closes (the default >> behaviour of cfcookie). > > btw, what's the purpose of the if statement? Why not just overwrite > them regardless? Or is that to confirm that session management is > enabled? Is there no other way to test that session management is > enabled or is that the most efficient method?
The point of cookies is that they're set once and kept for some duration; there's no need to set them on each subsequent page request (and it'll annoy people who've configured their browsers to prompt before accepting a cookie). 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! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319645 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

