title: Restricting failed logins with a countdown timer
body: <p>I am currently practicing my coding by writing a simple login script containing a counter session variable that increases by 1 every time a login attempt fails. Once there are 3 failed logins, the login page will automatically direct the user to an "error" page with a timer counting down to when he can try logging in again.Once the timer hits 0, the counter session variable will be cleared(reset to 0) and the user can try logging in again.</p>
  
  <p>I have written the login page with the session variable, but i'm currently stuck at the error page as i have no idea how to go about writing the timer.Im torn between using PHP(with TIMESTAMP) or Javascript/JQuery.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>1.What are the advantages/disadvantages of both PHP and/or Javascript/JQuery</p>
  
  <p>2.Im currently not tracking login attempts in my database, should i be doing so?</p>
  
  <p>Thanks!
  P.S: I'm currently using Uniform Server ,MYSQL </p>