Forget where I got this from....but it works.  Place it in the
Application.cfm

<!--------
This removes the session variables when a user closes the browser
---------->

<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
  <cfset cfid_local = Cookie.CFID>
  <cfset cftoken_local = Cookie.CFTOKEN>
  <cfcookie name="CFID" value="#cfid_local#">
  <cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>


Julie



-----Original Message-----
From: Conrad, Christopher <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, July 07, 2000 3:50 PM
Subject: RE: Session Management


>Use the onUnload() event handler within the BODY tag to run a template with
>this code:
>
><CFLOOP COLLECTION="#session#" ITEM="ThisKey">
> <CFSET tmpVar = StructDelete(session, ThisKey)>
></CFLOOP>
>
>That will take care of it.
>
>Chris
>
>Christopher Conrad
>Victoria's Secret Catalogue
>http://www.VictoriasSecret.com
>Senior.Programmer.Analyst
>614.337.5653
>[EMAIL PROTECTED]
>
>
>> -----Original Message-----
>> From: Matt Rodosky [SMTP:[EMAIL PROTECTED]]
>> Sent: Thursday, July 06, 2000 4:07 PM
>> To: [EMAIL PROTECTED]
>> Subject: Session Management
>>
>> Is it possible to terminate a session when a user closes their browser??
>> Its
>> easy when a user logs out, or the session times out, it would be nice if
>> you
>> could also do it when the browser is closed.
>>
>> TIA
>> Matt
>>
>> -------------------------------------------------------------------------
-
>> ----
>> Archives: http://www.mail-archive.com/[email protected]/
>> To Unsubscribe visit
>> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
or
>> send a message to [EMAIL PROTECTED] with 'unsubscribe' in
>> the body.
>---------------------------------------------------------------------------
---
>Archives: http://www.mail-archive.com/[email protected]/
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to