Capturing event when user closes browser

Posted on 2006-03-22
Last Modified: 2010-04-16
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

Question by:dees
    LVL 8

    Expert Comment

    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.

    Author Comment

    Dear Vinhnl
       My application is accessing a remote object i need alter one of its property when user closes the browser
    LVL 8

    Accepted Solution

    Yes I see, You can see this url, I hope that it can help you :

    Good luck,

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Email Body 4 32
    VBSCRIPT in Page Load C# ASP.NET 6 41
    Aspnet xml 2 27
    C# System Cannot Find File Specified Error 4 36
    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    This video discusses moving either the default database or any database to a new volume.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now