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

Dees
deesAsked:
Who is Participating?
 
vinhnlCommented:
Yes I see, You can see this url, I hope that it can help you : http://www.codeproject.com/csharp/detect_closing_navigator.asp?print=true

Good luck,
VINHNL
0
 
vinhnlCommented:
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.
0
 
deesAuthor Commented:
Dear Vinhnl
   My application is accessing a remote object i need alter one of its property when user closes the browser
0
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.