Maintaining user log in the database

Adeel Mirza 121 Reputation points
2022-05-10T06:24:49.69+00:00

In my ASP.NET application I am maintaining user log in the database. Whenever a user logs in, his user details, and login time is saved in the database and when the user logs out his log out time is saved.

Now the problem arises, if the user doesn't log out and his session expires. In this case I am unable to save his logout time. In Golbal.ascx. I cannot Session_End I cannot call such ADO.NET operation.

How can I overcome this.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 questions
{count} votes