multiple users login

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
yeller
Forum Newbie
Posts: 2
Joined: Tue Jan 23, 2007 10:36 am

multiple users login

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: multiple users login

Post 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.
(#10850)
Festy
Forum Commoner
Posts: 28
Joined: Wed Jan 30, 2008 10:01 pm

Re: multiple users login

Post by Festy »

The solution can be more clear if you can tell, exactly for what purpose do you want to allow 2 accounts.
Post Reply