1 thing comes to mind & thats the OnUnLoad event handler in javascript. This
usually goes into the <body> tag specified iwthin your HTML pages. You could
have this setup to open a new window on Unload like you've probably seen a
thousand sites do. In this case the popup window/page would only contain the
cf code to kill the session.
If your really slick just have the page contain one line of javascript code
which would access the close() method of the window object, so that once the
page popups it will kill the session & the window at the same time. This
would happen so fast that most users wouldnt even see the window popup in
the 1st place. Good luck.
>From: "Paul Mone" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: CF-Talk <[EMAIL PROTECTED]>
>Subject: RE: Automatically Terminating Sessions
>Date: Thu, 16 Nov 2000 22:17:09 -0800
>
>If you're that concerned about ghost sessions, maybe you should lower the
>timeout length.
>
>-----Original Message-----
>From: AustralianAccommodation.com Pty. Ltd.
>[mailto:[EMAIL PROTECTED]]
>Sent: Thursday, November 16, 2000 2:44 PM
>To: CF-Talk
>Subject: Automatically Terminating Sessions
>
>
>I do not have a logout facility in my cf site and all sessions stay active
>until there has been 30 minutes in inactivity and then the session times
>out.
>
>Are there any ways of terminating a session based on the user closing the
>browser or else leaving the site and visiting another site. ??? I also need
>to action some script when ever the session has been terminated so this
>script will need to be incorporated in what ever termination process there
>is available. I do not want to simply have a logout button as this is
>relying on the user to log out which many will not be bothered doing
>
>any ideas as always would be greatly appreciated
>
>
>Kind Regards
>
>Claude Raiola (Director)
>AustralianAccommodation.com Pty. Ltd.
>Email: [EMAIL PROTECTED]
>Developers Of:
> Website: www.AustralianAccommodation.com
> Website: www.AccommodationNewZealand.com
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Structure your ColdFusion code with Fusebox. Get the official book at
>https://secure.houseoffusion.com
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=sts
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Structure your ColdFusion code with Fusebox. Get the official book at
>https://secure.houseoffusion.com
>
>Archives: http://www.mail-archive.com/[email protected]/
>Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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