CodeIgniter Forums
Recording # of login attempts. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Recording # of login attempts. (/showthread.php?tid=6271)



Recording # of login attempts. - El Forum - 02-20-2008

[eluser]Chris.Campbell[/eluser]
My original idea to record the number of login attempts was to use a cookie, but there are other ways besides browsers to test logins. Is there a way of recording login attempts, say for the IP, without using a table in the DB? Thanks as always Smile


Recording # of login attempts. - El Forum - 02-20-2008

[eluser]wiredesignz[/eluser]
You have to persist the login attempts between each page load somehow, use DB, file, cookie or session


Recording # of login attempts. - El Forum - 02-20-2008

[eluser]Chris.Campbell[/eluser]
If someone is using the website say.. via command line using a script to check logins, does the CI session class still record the IP?


Recording # of login attempts. - El Forum - 02-20-2008

[eluser]wiredesignz[/eluser]
IP is from the $_SERVER global not $_SESSION, so yes.