To keep track of number of times the user tried to log in, you have to either use a session variable, store number of tries in a database, or set it as a GET-variable. Where the two first alternatives are good and the third one basically sucks.
Quote:
|
i tried store it in a session, it worked but the problem with having $_SESSION['count'] is it keeps counting if i press 'refresh' from the browser.
|
Normally an user wouldn't refresh the page after a failed login atempt, and if she does she'll have to suit herself. Go for the session solution.
__________________
34343639363436653237373432303635373837303635363337 34323037343638363137343263323036343639363432303739 366637353366
|