Hi Frnds.,
How to find the users login/logout times on my site.
can Anyone help me to solve this problem.
Thank You.
Users login/logout times on my site.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Saineshwar BageriRank #115 · 19.6K reputationPosted Sep 4, 2014, 8:16 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted Sep 4, 2014, 9:25 PM EDT
UserID int
LogInTime datetime
LogOutTime datetime
Whenever user logs in, you need to enter a record in the table with LogInTime. When the user logs out, before logging him out, find the last record of the logged in user and update LogOutTime to current time.
However, this is not the best way as many users login to a website and close the browser after some time. If you want to implement some specific feature based on this, you must think an alternative solution as well.