I agree. Using a database is usually a good way of storing session
information. But as noted by Dennis below, automatic logout may require
additional scripts running in the background. This is a bit inferior in
PHP compared to ASP. In ASP, support for automatic session destruction
is implement
On Tue, Jul 16, 2002 at 01:57:51PM -0400, Monty wrote:
> Is there a standard method in PHP for preventing multiple people from using
> the same log-in username/password simultaneously on a membership site? Any
> suggestions are greatly appreciated.
My session management system uses a database bac
lt;[EMAIL PROTECTED]>; "Monty" <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 3:22 PM
Subject: Re: [PHP] Preventing Multiple Log-Ins after Authentication
> If you do not want to use cookes and use SID or trans SID; Another method
is
> to track your logins via a database. Thi
AIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 1:57 PM
Subject: [PHP] Preventing Multiple Log-Ins after Authentication
> Is there a standard method in PHP for preventing multiple people from
using
> the same log-in username/password simultaneously on a member
y think it's someone else trying to log on...
Not sure if there is a truly effective way to do this...
---John Holmes...
- Original Message -
From: "Monty" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 16, 2002 1:57 PM
Subject: [PHP] Preventing
create cookie and at the end of the Script/page destroy cookies
Use if statements:
setcookie('cookie', $value, $expire, $path
$domain);
if(isset($cookie))
echo "Access Denied, Multiple Login
Attempted!";
[snip]
Is there a standard method in PHP for preventing multiple people from using
the same log-in username/password simultaneously on a membership site? Any
suggestions are greatly appreciated.
[/snip]
One way is to set a non-expiring cookie, which works if they don't delete
cookies from time-to
Is there a standard method in PHP for preventing multiple people from using
the same log-in username/password simultaneously on a membership site? Any
suggestions are greatly appreciated.
Thanks!
Monty
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
8 matches
Mail list logo