Where do I place the code for inserting Logout Time RRS feed

  • Question

  • User869548786 posted


    I have an web application. When the user logs in, then I insert the Login Time. Similarly when the user logs out properly, by clicking the logout button, I insert that time as Logout Time. But sometimes (actually most of the times), the user does not log off properly, he just closes the application, by closing the website. 

    How do I take the Logout time during such an incident.

    I placed the code in Global.asax in Session End event, but that too did not give me the desired results.

    Help is much appreciated.




    Tuesday, March 3, 2009 11:58 PM


  • User1155728566 posted

    I'm not sure that this is possible with a straight out of the box solution. You may need to somehow store the session with an ID to allow the user and server to keep track of the session.

     Have a look at the Microsoft Enterprize Liabrary, it will allow you to create your own cacheing ( with possibly can be used to suite your needs)

    just my 2c


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, March 4, 2009 3:01 AM