Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to dispaly user last time login date and time when login...
Posted
Comments
V. 24-Mar-14 10:21am    
You need to be more specific, is there a database attached, what technology are you using. What is the exact problem? Where are you stuck... ? Which part of your code doesn't work?

1 solution

If you are using asp.net membership you can use MembershipUser.LastLoginDate Property[^]
Otherwise, you have to store the logged in date time of the user in a database table column. Whenever the user logs in to the website , first retrieve the already stored date, i.e. the last login date, and update it with the current logged in datetime. The retrieved last logged in date time can then be displayed in a label control.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900