Possible Duplicate:
Limiting user login attempts in PHP
I'm trying to put some security in login to block user access after 3 failed attempts to login. For example, if a specific user attempts to login with wrong username or password 3 times, I should show the dialog or message that the user needs to try again after 10 minutes (as an example)
Than after 10 minutes, the user can login again with correct username and password.
How do I do that?