On Unload event???

MisterB

Newcomer
Joined
Oct 18, 2005
Messages
17
Location
The Hague, The Netherlands
Hi all,

I've got a question,
What I want to do is this: if a page is UNLOADED say by clicking on a close button on the page OR by clicking on the (x) button on top of the window),I want to set a few session objects to nothing.
But.....
When I try to do this via the Page_Unload event it does it every tim the page loads and reloads... So.. this is not realy what i want...

and.... if I click the (x) button the event doen't fire @ all.. :confused:


So Now I'm stuck with a session object... that isn't destroyed after the window is closed....


Does anyone have any ID??

Tnx
 
Web applications do not work that way. There is no way for the broswer to automatically notify the server that it has been closed.

Every time a page is accessed it is created on the server side, it's code is run to generate HTML and then it is destroyed.
 
Back
Top