MisterB Posted February 22, 2006 Posted February 22, 2006 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 Quote
Administrators PlausiblyDamp Posted February 22, 2006 Administrators Posted February 22, 2006 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
MisterB Posted February 23, 2006 Author Posted February 23, 2006 Tnx for your reply. ... I've solved the problem by 'destroying' the session obeject on the first load... Not realy the way but... it wordks... Tnx again! Take care! Mrb Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.