Maintaining user log in the database
Adeel Mirza
121
Reputation points
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.