Re: Session - to restrict same user from two logins

From: Date: Thu, 26 Jul 2001 06:20:38 +0000
Subject: Re: Session - to restrict same user from two logins
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-59686@lists.php.net to get a copy of this message
Hello Sheni when a user logs into a site, the information that the php server gets is about the machine and not about a particular person, so you have to associate information with that particular person, what i mean is give your users passwords and maintain a database of those logged in using their respective passwords, and whenever a person logs in, run a check from the database to see if he is there or. an easier way of doing this is to have a database of users with their password in the table and when they log on simply mark them logged using sum boolean variable. this will, cut down time. good luck!. and remeber ........ Have a nice day :) On Thu, 26 Jul 2001, Sheni R. Meledath wrote: > Hello: > > Session: > I am using sessions for user authentication in one of our sites. Are there > any ways to restrict the same user from logging in from two different > machines. That is, once if the user is logged in, and if somebody tries to > log-in using the same userid and password it should be able it display a > message 'already logged in from other another computer'. > > I have seen a similar sample in venturewire.com. > > Please help me to find out a solution for this. > > Many thks & best rgds > > > > Sheni R Meledath > sheni@cyber-gear.com > > > -- Saquib Farooq @ Systems @ SDNPK Islamabad

« previous php.general (#59686) next »