nitation Posted June 22, 2008 Share Posted June 22, 2008 Hello, I just wanna know how to get the last login date for users. Do i need to store the information in a database or make use of file. Can someone please put me through?? Thanks Link to comment https://forums.phpfreaks.com/topic/111409-last-login/ Share on other sites More sharing options...
trq Posted June 22, 2008 Share Posted June 22, 2008 Each time a user logs in you will need to update a last_login_date from a current_login_date field then update the current_login_date field with the actual current date. Link to comment https://forums.phpfreaks.com/topic/111409-last-login/#findComment-571847 Share on other sites More sharing options...
DarkWater Posted June 22, 2008 Share Posted June 22, 2008 I find it hard to believe that you could make a login system and not be able to figure out how to do this. Unless you didn't make it. I think it's fairly obvious that you'd store the time that they log in...when they log in. O_O It's like, 1 extra line of code. Link to comment https://forums.phpfreaks.com/topic/111409-last-login/#findComment-571849 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.