How to detect browser close at server side in asp.net? -
i wanted know when browser closed @ server side in asp.net 2.0. how detect in code behind?
client side script:
< body onbeforeunload="window.open('http://www.website.com/browserclosed.aspx','mywindow','width=1,height=1');">
server side script (browserclosed.aspx):
// page_load int userid = convert.toint32(request.session("userid")); reportbrowserclosed(userid); // want in reportbrowserclosed() method
Comments
Post a Comment