19.04.2017, 22:59
Quote:
What if player's IP changes? For example a dynamic IP or if they use some sort of software that changes it, I've read about this on ****** but I also found that it is not that good due to the IPs changing...
|
You just have to check if the session exists with the current ip address that is assigned, if so, then he still will be logged in, if not, just delete the user session. You can get the current session of a request/user with: http://php.net/manual/en/function.session-id.php