Hello,
So I am creating this login admin site and I would like to keep of track of when users last logged in and then show them that message in the welcome screen. Kind of how webdeveloper.com does it for our accounts. I am a little confused on where to put the script. At first I just send the date and time to a table in my database when the user logs in but then I realized everytime they login it will be overwritten by the most current login, so that doesnt seem to work.
The other thing I was thinking was to just log the date and time when they logout but then if they dont officially logout the date and time will not be updated.
How do you guys usually solve this problem?
Thanks,
Seth