Re: Preventing Multiple Log-Ins after Authentication
| From: | Kondwani Spike Mkandawire | Date: | Tue, 16 Jul 2002 18:16:00 +0000 |
| Subject: | Re: Preventing Multiple Log-Ins after Authentication | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107945@lists.php.net to get a copy of this message | ||
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!";
else
run the page/script
or
Stick an fetch I.P Stick it in String array,
if duplicate exist die...
else run script....
"Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message
news:001401c22cf2$db192080$8102a8c0@niigziuo4ohhdt...
> [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-time.
>
> HTH!
>
> Jay
>
> "Growing old is mandatory, growing up is optional"
>
> *************************************
> * Want to meet other PHP developers *
> * in your area? Check out: *
> * http://php.meetup.com/ *
> * No developer is an island ... *
> *************************************
>
>