mysql - disable the user for 2 hrs if the wrong password is entered 3 times with php cookies -


this code want add if conditions disable user when entered wrong password. please me out.

<?php  if(isset($_cookie["enabled"])) {     if($_post["username"]=="master" , $_post["password"]=="123")     {         if(isset($_post["rem"]))             setcookie("valid","yes",time()+2592000);         else             setcookie("valid","yes");          header("location: welcome.php");     }     else         header("location:login.php?msg=1"); } else     header("location: login.php?msg=5");  ?> 

if looking manage database users failed logins, in mysql there no automatic lock mechanism can done using auditing log on failure event , using triggers failure event.
solution described on post !


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -