> In CF 10 Administrator, go to "Server Settings" -->"Memory Variables" & scroll down to "Session Cookie Settings". The
> "Session Cookie Settings" have complete control over the expires attribute for cookie.CFID & cookie.CFToken. When
> you set them like this: <cfset Cookie.cfid = SESSION.CFID> <cfset Cookie.cftoken = SESSION.CFToken> in
> OnSessionStart, the expires date gets set to the value set in "Session Cookie Settings" (minimum setting is 2 minutes)
> & this setting cannot be turned off. I tried using 0 and -1 to see if that would disable it from setting the expires attribute
> (for Cookie.cftoken & cookie.CFToken), it did not. In previous versions of CF, if you did not set the expires attribute when
> you set cookie.CFID and cookie.CFToken, these cookies would expire when you closed the browser, this is no longer
> the case for cookie.CFID and cookie.CFToken.
You can still do this, but you have to tell CF not to set the cookies
itself in the first place.
That said, you'd be better off following Jochem's suggestion to use
J2EE sessions instead.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/
Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351836