Welcome Guest, Not a member yet? Register   Sign In
How can i kick first Logged user?
#3

[eluser]TheFuzzy0ne[/eluser]
Just store it in the database:

user_id | ip_address

When the user logs in, update the IP address. Check on each following request that the IP address matches the one in the database, if it doesn't, someone else has logged in (thus changing the IP address), so log the other user out on his next request.

EDIT: You could also change the field to reflect the user agent instead, so logging on with a different browser would also kill the old session on the next request.


Messages In This Thread
How can i kick first Logged user? - by El Forum - 06-12-2009, 01:14 PM
How can i kick first Logged user? - by El Forum - 06-12-2009, 01:16 PM
How can i kick first Logged user? - by El Forum - 06-12-2009, 01:21 PM
How can i kick first Logged user? - by El Forum - 06-12-2009, 02:45 PM
How can i kick first Logged user? - by El Forum - 06-12-2009, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB