Hello,
I'm currently using PHP to authenticate users to their account.
I don't want to use cookies because the users can not only modify the information in there, figure out what methods I use to identify them, but the users who don't allow cookies will not be able to login.
I simply want to use a quick session that gets the client's local IP address, i.e. 192.168 or 10.0, for the most part and the MAC address only if someone knows how to do that.
I don't want to use "$_SERVER['REMOTE_ADDR'];" OR "gethostbyaddr($_SERVER['REMOTE_ADDR']);" for this method.
<?php
session_start();
$_SESSION['IPADDR'] = method to get IP address;
$SESSION['MAC'] = method to get MAC Address' (only if someone knows how to)
session_unset($_SESSION['IPADDR']); //ensures the variables were destroyed
session_unset($_SESSION['MAC']);
session_unset();//ensures the variables were destroyed. This is after the direct specification of the variables because it deletes everything instead of looking for a specific variable, which could cause an error I don't need.
session_destroy();
?>
Thanks,
Bookmarks