07-05-2016, 02:59 PM
Where are you wanting to see the IP address? The PHP variable $_SERVER['REMOTE_ADDR'] contains the address of the user, and you could assign it to a $_SESSION variable like so:
$_SESSION['USIP']=$_SERVER['REMOTE_ADDR'];
Then, you can use $_SESSION['USIP'] as needed. A good place to put the above assignment would be in usersc/scripts/custom_login_script.php.
Does that help?
$_SESSION['USIP']=$_SERVER['REMOTE_ADDR'];
Then, you can use $_SESSION['USIP'] as needed. A good place to put the above assignment would be in usersc/scripts/custom_login_script.php.
Does that help?