Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 29, 2012 12:07 PM by ramiramilu
Feb 29, 2012 01:39 AM|LINK
trying to set the Session("userfound") = False, when the current page has been closes or changes ,,
tried unload but it will call the event on page ends, just not as in page changes,
Feb 29, 2012 02:51 AM|LINK
There should be a Hidden button with click event on the server side, where you will set the Session("userfound") = False.
if (window.event.clientX < 0 && window.event.clientY < 0)
Feb 29, 2012 02:54 AM|LINK
window.onbeforeunload = bunload;
dontleave="Please Use Logout Button ?";
Feb 29, 2012 07:50 AM|LINK
As far as I know, there is no server side event to detect the
client browser close event. But you can detect it at the client side's onbeforeunload method and sends an ajax call.
Please 'Mark as Answer' if this post helps you.
Feb 29, 2012 08:13 AM|LINK
Feb 29, 2012 12:07 PM|LINK
My friend Vijay kodali wrote a blog post on clearing session event on browser close - http://weblogs.asp.net/kodali/archive/2010/04/29/asp-net-session-on-browser-close.aspx