Kindly change the code to make the session variables for mac address set using the client IP address. I have done using my own server IP. You can get the client IP address by using
$ip="CLIENT_IP";
$mac = shell_exec('arp '.$ip.' | awk '{print $4}'');
By the execution of above code, you can get the mac address of client in $mac variable which is used to set the session variable.
Kindly change the code to make the session variables for mac address set using the client IP address. I have done using my own server IP. You can get the client IP address by using
$ip="CLIENT_IP";
$mac = shell_exec('arp '.$ip.' | awk '{print $4}'');
By the execution of above code, you can get the mac address of client in $mac variable which is used to set the session variable.