JKS,
. .
, , .
: cookie, html5 localStorage . . localStorage ( ), , , , , cookie .
, , :
timestamp, ip_address, user_agent
, . :
if(isset($_SESSION['failed_logins'])) {
$failed_logins = $_SESSION['failed_logins'];
$_SESSION['failed_logins'] = ($failed_logins + 1);
} else {
$_SESSION['failed_logins'] = 1;
}
setcookie(), localStorage script..
Now I am tracking this person and know how many times they fail to log in.
Then I will write this user data to my fail_login table as described above.
I'm sure this is not the answer you were looking for, but it is really the best way to track users on your site.
source
share