You can attached the javascript function to BODY unload which calls Session.Abandon() and then have all the things get done in Session_End in global.asax.
Regards Naweed Akram -----Original Message----- From: scaevola637 [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 7:19 PM To: AspNetAnyQuestionIsOk@yahoogroups.com Subject: [AspNetAnyQuestionIsOk] Does .net know when client closes browser? I dont think it does, but am just crurious. If it does know, should not sessionend event (or sessionabandon) fire? Yahoo! Groups Links Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/