> How do get the session variable to expire on browser close?
You can simply disconnect the session from the user by setting
non-persistent cookies:
<cfapplication name="myapp"
sessionmanagement="true"
setclientcookies="false">
<cfif not IsDefined("Cookie.CFID")>
<cflock scope="session" type="readonly" timeout="2">
<cfcookie name="CFID" value="#Session.CFID#">
<cfcookie name="CFTOKEN" value="#Session.CFTOKEN#">
</cflock>
</cfif>
Note that the lack of a TIMEOUT attribute in the above CFCOOKIE tags will
cause the cookies to be set as non-persistent or "session" cookies, which
will be destroyed when the browser is closed.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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