On 2/21/07, Andy Matthews <[EMAIL PROTECTED]> wrote:
>
> If you've got CF7, then you can use the onSessionEnd method in
> Application.cfc. Short of that though, there is no way I know of to delete
> a
> session on browser close.


Actually, that wouldn't work.  onSessionEnd() only runs when the SESSION
EXPIRES, not when the browser closes.

If you want to do this, you should use non-persistent (memory) cookies
rather than sessions or in addition to sessions.  The cookie goes away when
the users closes the browser in those cases.

Rick

-- 
> I'm not certified, but I have been told that I'm certifiable...
> Visit http://www.opensourcecf.com today!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270325
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to