解决方法
客户端脚本:
< body onbeforeunload="window.open('http://www.website.com/browserclosed.aspx','mywindow','width=1,height=1');">
服务器端脚本(browserclosed.aspx):
// page_load int userId = Convert.ToInt32(request.session("userId")); ReportBrowserClosed(userId); // Do what you want in ReportBrowserclosed() method