AL MUBARAK

AL MUBARAK

  • NA
  • 96
  • 68.1k

How to Capture Login and Logout Time and stored into in database using c#.net

Dec 24 2011 2:35 AM
Hi Guys,

  The logic is simple. But i dont have an idea to implement it in c#.net application with correct step by step procedure. The thing is
When a user logs in via your login form you insert a new record with the userID & login date time (datetime.now). Now when the user clicks the logout button you set the logout datetime.
However if the session ends you will have to
a) figure out if the session is bound to a user,
b) submit your logout logic.

I have to shown The login Time also in Label field.

Anyhelp will be greatly appreciated.


Thanks
Mubarak



 

Answers (2)