rofl90 Posted March 4, 2008 Share Posted March 4, 2008 I have a form in which submits an ip when you logon, and stores it into a mysql database, now how would I extract that data, but only displaying like the last 20 results.. OR how would I have the records automatically delete themselves after 30 minutes or whatever, so that if you get it wrong your almost locked out for a while. But obviously I'd make it three times or w.e. Link to comment https://forums.phpfreaks.com/topic/94385-ip-logging/ Share on other sites More sharing options...
CrazeD Posted March 4, 2008 Share Posted March 4, 2008 Make a last_login_try field in your database and store a timestamp from the last time they failed a login. Then add login_tries or something to your database, and increment a number each time they fail a login. Then run a check to see if how many failed logins they have. Then see if the last login attempt was more than the specified time limit ago. Link to comment https://forums.phpfreaks.com/topic/94385-ip-logging/#findComment-483378 Share on other sites More sharing options...
rofl90 Posted March 4, 2008 Author Share Posted March 4, 2008 OK, thanks man )) Link to comment https://forums.phpfreaks.com/topic/94385-ip-logging/#findComment-483379 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.