I'm currently using PHP to authenticate users to their account.
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(); ?>
This post has been edited by Martyr2: 02 December 2010 - 07:41 PM
Reason for edit:: Please use code tags in the future, thanks!