Kerala Microsoft Users Group

Browser close button event

Latest post 10-08-2008 11:07 AM by vkuttyp. 5 replies.
  • 09-30-2008 12:50 AM

    Browser close button event

    Hi

    Is there any event which will handle browser close button.I mean i wanted to do some coding in c# when user close browser close button.

    Exactly i wanted to track down how many users are currently availble in my application. For that i have used counter in session onstart and onend event.

    But when i close browser close button Session_OnEnd event is not getting called.

     

    thanks

    jegan

    • Post Points: 25
  • 09-30-2008 1:06 AM In reply to

    Re: Browser close button event

    Session_OnEnd will not fire immediately. It is a background process. Try setting a breakpoint and wait for sometime.

    Praveen V Nair, PMP
    Tech Blog | PM Blog

    • Post Points: 25
  • 09-30-2008 8:25 AM In reply to

    Re: Browser close button event

    I have checked that but still the event is not fired. I dont know whether this will do the job if it is running in IIS

    • Post Points: 5
  • 10-01-2008 12:59 AM In reply to

    Re: Browser close button event

    Can we find out that no of active sessions by any performence counters??

    • Post Points: 25
  • 10-01-2008 2:50 AM In reply to

    Re: Browser close button event

    Session_End event will not fire in case the user closes the browser. HTTP is a stateless protocol. There is no way for the server to understand that the browser has been closed.

    Rejeev.

     

    • Post Points: 25
  • 10-08-2008 11:07 AM In reply to

    Re: Browser close button event

    • Post Points: 5
Page 1 of 1 (6 items) | RSS