You can use some javascript in the pages which will force Session.Abandon(). Here is a brief intro to it:
1) Create a javascript function which calls Session.Abandon() 2) Attach this function to unload event of the HTML Body. 3) Write the code that you want to execute in Session_End in global.aspx. P.S. This only works with InProc session state. Regards Naweed Akram -----Original Message----- From: scaevola637 [mailto:[EMAIL PROTECTED] Sent: Thursday, January 20, 2005 7:01 PM To: [email protected] Subject: [AspNetAnyQuestionIsOk] Session_end I thought that when a client closes the browser this triggers the Session_end event in global.asax. I see now that this is not the case. I am trying to capture session information and want to post it to Sql Server when the session is over. Can anyone tell me the best way to do this? Thanks in advance 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/
