Detect the browser closing event of Alt+F4 in asp.net
<p>How to detect the browser closing event in asp.net before page unload.
I need to call the javascript  function  to clear the cookie expire time.
In body onunload method I'm able to call the function but its calling even if I refresh the page.
So, Could anyone can help me out.
Thanks.</p>
