Does anyone know a good way to trap for the Browser Window closing? I need to put some additional "logging-off" code in a suitable location to log users off of a server (other than the web server). I can't put this code in the Window_OnUnload of the main page in my web app, as this fires anytime the page reloads with new content. I have the code duplicated in the Session_OnEnd of the Global ASA file, but that event does not fire when the Browser Window is closed using the X button.