Page 1 of 1

multiple users login

Posted: Wed Jan 30, 2008 11:02 am
by yeller
Hello,

My experience with PHP is not extensive. I want to find a way to create a concurrent login account on a website. This will allow say, 2 people to be logged in under the same account, but will not allow a third. I realize I can do this through simple db entries, but I'm wondering if there's a more clever way.

Thanks

Re: multiple users login

Posted: Wed Jan 30, 2008 11:09 am
by Christopher
No. You need a central data store to hold which accounts are logged-in. The trick is when to delete records due to inactivity, because not everyone will click logout.

Re: multiple users login

Posted: Thu Jan 31, 2008 5:55 am
by Festy
The solution can be more clear if you can tell, exactly for what purpose do you want to allow 2 accounts.