Quote:
Originally Posted by pbmods
Heya, Theoni.
You need to be able to uniquely identify each computer. My recommendation is to use a cookie.
Unfortunately, session cookies are rather unreliable, and IP addresses are not particularly unique.
You'll want to set a cookie when the User logs in with a unique identifier (sha1(microtime()) does nicely). The next time that User tries to log in, check his Username, password AND unique ID to see if he's allowed to login from that machine.
Make sure you implement a timeout so that the User isn't stuck on one machine until he logs out!
I did try such an implementation but I am not sure that session cookies cover all cases for users this is why I was looking for a more elaborate solution that takes care of user connection on the server, without interference. I will look into your suggestion better if I don't come up with anything better.
thank you for the answer pbmods
theoni