> From what I understand if you set the cfadmin to use J2EE > Session variables sessions will expire when the browser is > closed.
As you've discovered, your understanding isn't correct. Closing the browser deletes the session cookie that associates the browser with the session, but has no effect on the existence of the session on the server. From the user's perspective, it appears that the session no longer exists. > However I've been testing this out and the > OnSessionEnd code I have in the application.cfc does not run > when the browser is closed it only seems to run when the > session times out. Is there a way to trigger the OnSessionEnd > when a user closes the browser? Thanks. There is no guaranteed way to destroy the session data when the browser is closed. You could use the onunload event of your page to make a server request, but it may not work in many cases. Your best bet is simply to let the session expire normally. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281705 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

