Re: How to end a session when the user closes the browser?
From: Lionel LASKE (llaske_at_c2s.fr)
Date: 02/01/05
- Next message: TJS: "Re: get count fails"
- Previous message: news.microsoft.com: "How to end a session when the user closes the browser?"
- In reply to: news.microsoft.com: "How to end a session when the user closes the browser?"
- Next in thread: news.microsoft.com: "Re: How to end a session when the user closes the browser?"
- Reply: news.microsoft.com: "Re: How to end a session when the user closes the browser?"
- Reply: Juan T. Llibre: "Re: How to end a session when the user closes the browser?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 1 Feb 2005 09:34:28 +0100
Unfortunatly, nothing happens on the server when the browser is closed.
I'm afraid that you can't close the session without waiting the timeout and
the "Session_End" event.
Lionel.
"news.microsoft.com" <babupalladium1@yahoo.com> a écrit dans le message de
news: uBWhueDCFHA.468@TK2MSFTNGP15.phx.gbl...
> Hi everyone,
>
> I need some help (may be in the form of some sample code) for the subject
> question.
>
> I have an ASP.NET/C# application. I need to do quite a few tasks when the
> session ends. I don't want to depend on the session timeout factor since
> it may end too soon or it may hang around too long. I can't find any
> event that fires when the browser closes. The Session_End event handler
> in the Global.asax does not execute until the timeout value expires.
> Also, when it does execute the Session_end, it seems that the session has
> already ended and so, I have no access to any of the session variables I
> was holding onto.
>
> Can anybody tell me the server side sequence of events and their handlers
> that get called when the user closes a browser? Does the browser inform
> the server that it is closing, so that I can do my cleanup?
>
> Any help is highly appreciated.
>
> Babu.
>
>
- Next message: TJS: "Re: get count fails"
- Previous message: news.microsoft.com: "How to end a session when the user closes the browser?"
- In reply to: news.microsoft.com: "How to end a session when the user closes the browser?"
- Next in thread: news.microsoft.com: "Re: How to end a session when the user closes the browser?"
- Reply: news.microsoft.com: "Re: How to end a session when the user closes the browser?"
- Reply: Juan T. Llibre: "Re: How to end a session when the user closes the browser?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|