It works because you never allow the cookies to be written to disk, you are
making them memory resident so that when the browser closes, the cookies are
lost, thus the session is lost.

  
> <!--- code to force session end on browser close ---> <cfif
> IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
>   <cfset localCFID = Cookie.CFID>
>   <cfset localCFTOKEN = Cookie.CFTOKEN>
>   <cfcookie name="CFID" value="#localCFID#">
>   <cfcookie name="CFTOKEN" value="#localCFTOKEN#"> </cfif>
>
> Not *exactly* sure why it works, but it does /shrug
>
> Slap that in your application.cfm and presto!
>
> Anyone have any explanation for why it works?  Hope that helps you...
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to