Any PHP developer that may help me here?
#16

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
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...
Well, the user has to login again. There is no need to save there sessions/ip's permanently.

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
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)