Page 1 of 1

user can only login one pc at a time

Posted: Sat Sep 16, 2006 12:13 pm
by reecec
hi all,

I have a login system that i dont want users to share logins so I am doing it like this is this correct

When they login they get added to the online user list in a database they have a time stamp

when they are accessing a script the script updates the timestamp

while at login if someone tryes to login firstly it deletes all users on that have not been active for 10 mins then with that username it checks the rows if its not 0 they cant login.

but for this to work i am going to have to make the current loged in users sessions time out after 10 mins of no activity otherwise they can carry on and it will be updating the same row and many users could still come in once they have waited 10 mins of no activity.


sorry if i have explained it badly

is this the way to do it

thanks reece

Posted: Sat Sep 16, 2006 1:02 pm
by feyd
Yes, that's the rough idea.