> -----Original Message-----
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 27, 2001 9:57 AM
> To: CF-Talk
> Subject: RE: CFAPPLICATION seesion cookie to expire on browser close
>
>
> > 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.
Actually, to clear that up, it's the lack of the EXPIRES attribute in the CFCOOKIE
tags that makes them expire on the closing of the browser.
> 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