When someone logs in, save their ID somewhere. If they try to log in
again, check where you save the names and see if it's there. 

Checking my crystal ball, though, you're going to run into problems.
What if I log in, accidentally close my window, and then go back to try
and log in again. Odds are your "security" feature will not allow me to
log in, because it thinks I already am.

Bottom line, why worry about it?

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/

> -----Original Message-----
> From: Henry [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 22, 2003 12:00 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
> Subject: Re: [PHP] How to implement this by php Session
> 
> absolutely!
> Sorry for my english first, what I want to do is make sure one account
can
> login in at the same time,
> is there any mechanism in PHP can slove it? or I have to use external
> program (daemon what I develop)
> to do so? the way I imagination is list below does that work or you
have
> smarter solution?
> 
> ----- Original Message -----
> From: "Jason Wong" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 23, 2003 12:32 AM
> Subject: Re: [PHP] How to implement this by php Session
> 
> 
> > On Thursday 23 January 2003 00:26, Chris Shiflett wrote:
> > > --- Henry <[EMAIL PROTECTED]> wrote:
> > > > I'd like to implement ONE USER SIGNIN at the same time,
> > > > the way I consider about is below:
> > > > 1 record the sessionId and userId in some media(db),
> > > > then we'll know who is login and who is not
> > > > 2 use a demon program to determine whole sessionId
> > > > which is live and correspond to db's data if some
> > > > session is dead then demon program will remove from db
> > > >
> > > > that's what I think, does it work? or anybody has real
> > > > exprience about it? if my idea work, how to get whole
> > > > live sessionId from webserver(apache+php)?
> > >
> > > I honestly cannot understand exactly what you are asking,
> > > but are you certain it is different from just using PHP's
> > > sessions?  It sounds to me like it is the same thing.
> >
> > Sounds as if he wants to ensure that only one (active?) login (per
> account? or
> > per application?) is allowed at any one time.
> >
> > --
> > Jason Wong -> Gremlins Associates -> www.gremlins.biz
> > Open Source Software Systems Integrators
> > * Web Design & Hosting * Internet & Intranet Applications
Development *
> >
> > /*
> > Hug me now, you mad, impetuous fool!!
> > Oh wait...
> > I'm a computer, and you're a person.  It would never work out.
> > Never mind.
> > */
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to