I’m trying to build an authentication script and i’m trying to get this one method together.
I want to know if the user has logged into their account from another computer on their network.
For instance if Sally logged in from computer 192.168.0.101 then Bob logs in from his computer on 192.168.0.103 i want Sally to be logged off.
I can already check to see if a user has logged in from another computer by matching their system specs against stored system specs. For instance, checking operating system, os version, etc.
but this will be easy to trick if there were 2 identical computers on the same network. My script would not know the difference.
Is there a way to detect either MAC address or Private IP’s or something to that effect via PHP?
i think you can’t detect either MAC address or Private IP’s in PHP
but you can make a table in the database that contain’s the currently logged in user
each time a user login check if it’s exist in the online table .
hope this may help you