artweb Posted January 17, 2008 Share Posted January 17, 2008 I have a php login page that checks against a mysql database, to find if user have a password and username stored in the database. If they do they are allowed into the members only part of my website. But what I need is once a user is successfully login, is to be able to know the time they login and the date and how long they spent login. I don't want the user to have to logout, I want that to be automatic, after a certain period of time. Huh I have no cue of how to do this. Do I need another table in my database to store the users info? or do I need to use sessions and cookies somehow? Any help would be greatly appreciated. Grin Link to comment https://forums.phpfreaks.com/topic/86473-new-to-php-and-my-sql-still-need-alot-of-help-please-anybody/ Share on other sites More sharing options...
revraz Posted January 17, 2008 Share Posted January 17, 2008 So you need a new topic each day for this? Link to comment https://forums.phpfreaks.com/topic/86473-new-to-php-and-my-sql-still-need-alot-of-help-please-anybody/#findComment-441865 Share on other sites More sharing options...
artweb Posted January 17, 2008 Author Share Posted January 17, 2008 Until I figure this out. I guess so. Link to comment https://forums.phpfreaks.com/topic/86473-new-to-php-and-my-sql-still-need-alot-of-help-please-anybody/#findComment-441870 Share on other sites More sharing options...
kenrbnsn Posted January 17, 2008 Share Posted January 17, 2008 Please don't double post. You already have a topic started on this. Just bump it up. Locking this one. Ken Link to comment https://forums.phpfreaks.com/topic/86473-new-to-php-and-my-sql-still-need-alot-of-help-please-anybody/#findComment-441873 Share on other sites More sharing options...
Recommended Posts