I have an ASP application, that when called creates another browser window with no buttons etc. to help me control navigation within the application.<br><br>I also have a logout button which when pressed abandons the session.<br><br>However, when a user clicks the X in the top right hand corner of the browser the window closes and focus is passed back to the original window.<br><br>This window still holds the session object open. If this window is closed then the session closes but not before. <br><br>Is there any way of trapping when the browser window is closed so I can abandon the session.<br><br>Thanks<br><br>IQ