I'm creating a PHP application for login authentication:
$phpsessid = 'SID: ".SID."<br>session_id(): ".session_id()."<br>COOKIE: ".$_COOKIE["PHPSESSID"]';
file_put_contents("$ip","$phpsessid");
$m = "localhost/'.$ip.'";
$res = file_get_contents("$m");
$title=@$this->stribet($res,'SID:','<br>');
}
$phpsessid
will contain the data, time, IP, account login, time, etc.
How do I check an IP at the time of login? For example:
IP=>Conta=>PHPSESSID