Re: [PHP] Question about logins and locking

2010-06-23 Thread Richard Quadling
On 23 June 2010 07:44, Tommy Pham wrote: >> -Original Message- >> From: James Colannino [mailto:ja...@colannino.org] >> Sent: Tuesday, June 22, 2010 10:06 PM >> To: PHP-General List >> Subject: Re: [PHP] Question about logins and locking >> >> Tom

RE: [PHP] Question about logins and locking

2010-06-22 Thread Tommy Pham
> -Original Message- > From: James Colannino [mailto:ja...@colannino.org] > Sent: Tuesday, June 22, 2010 10:06 PM > To: PHP-General List > Subject: Re: [PHP] Question about logins and locking > > Tommy Pham wrote: > > > 1) Set an encrypted (to prevent hijac

Re: [PHP] Question about logins and locking

2010-06-22 Thread James Colannino
Tommy Pham wrote: > 1) Set an encrypted (to prevent hijacking and eavesdropping) cookie to > expire when browser closes > 2) Have a table in the DB backend to keep track if the user is logged in or > not and when was the last time the validated user access your site (this > gets updated when the u

RE: [PHP] Question about logins and locking

2010-06-22 Thread Tommy Pham
> -Original Message- > From: James Colannino [mailto:ja...@colannino.org] > Sent: Tuesday, June 22, 2010 2:29 PM > To: php-general@lists.php.net > Subject: [PHP] Question about logins and locking > > Hey everyone, > > I have a question about logins. Let'

[PHP] Question about logins and locking

2010-06-22 Thread James Colannino
Hey everyone, I have a question about logins. Let's say that I want to allow each user account to login only once at a time. I would then need some kind of locking mechanism to make sure that the same user can't login again somewhere else until first logging off. What's a good way to achieve th