Capturing event when user closes browser

Dear friends
   I have developed a web application and i am using some objects within it.i want to make those object empty when user clicks  'X' button of the browser.How can we do this.Please guide me for this issue

Thanks in advance

Who is Participating?
Yes I see, You can see this url, I hope that it can help you :

Good luck,
Hi Dees,

I don't know why do you have to empty those objects ? it isn't neccessaire with web application.

If you use variables session or application, you have to set time out for them.
deesAuthor Commented:
Dear Vinhnl
   My application is accessing a remote object i need alter one of its property when user closes the browser
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.