Re: end session when the browser window is closed.
- From: "Patrice" <nobody@xxxxxxxxxxx>
- Date: Wed, 6 Apr 2005 17:39:52 +0200
My personal preference is to not tied clean up to the normal application
flow. I tend to prefer to have a dedicated clean up routine that cleans
whatever needs to be cleaned.
You could use onbeforeclose but it's likely you'll find cases where it
doesn't fire (such as crashed browser etc...) plus session_end don't work
for other session providers etc...
Patrice
--
"sun" <sun@xxxxxxxxxxxxxxxxxxxxxxxxx> a écrit dans le message de
news:5E6B52AE-BD80-4C84-8E72-E351A2AFBDB0@xxxxxxxxxxxxxxxx
> I want to do clean up routine to my database when the browser is closed.
I
> have my code in session-end - but it never fires when the browser closes.
I
> cant do onbeforeunload as it will be fired each time when the browser
posts
> back.
> Somehow I want to capture browser close event and fire session abandon
which
> will call session end. Please help.
> Thanks,
> Sun
.
- References:
- Prev by Date: URGENT: Change location of aspnet_client folder?
- Next by Date: Re: end session when the browser window is closed.
- Previous by thread: Re: end session when the browser window is closed.
- Next by thread: How to give ACL permissions to ASPNET account
- Index(es):
Relevant Pages
|