![]() |
Login Attempts - Codeigniter - Not Working - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Login Attempts - Codeigniter - Not Working (/showthread.php?tid=77611) |
Login Attempts - Codeigniter - Not Working - ronald_balza - 09-23-2020 I want to workout a function such that unsuccessful login attempts of user are capped at 3 consecutive failed login attempts, then serve them a message to that effect. It is immediately executing this line: Code: if ($isBlocked) { Somethings wrong on my code. Thanks in advance for the help. Controller Code: <?php Code: <?php RE: Login Attempts - Codeigniter - Not Working - InsiteFX - 09-24-2020 PHP Code: if (isset($_SESSION['error_count'][$username]) && $_SESSION['error_count'][$username] < 3) { RE: Login Attempts - Codeigniter - Not Working - ronald_balza - 09-24-2020 (09-24-2020, 02:01 AM)InsiteFX Wrote:Thanks a lot ![]() |