Re: Re: Nead Help With A Php Script
| From: | Rasmus Lerdorf | Date: | Sat, 30 Mar 2002 22:50:09 +0000 |
| Subject: | Re: Re: Nead Help With A Php Script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90811@lists.php.net to get a copy of this message | ||
> (c) Obviously, this won't prevent someone from
> faking a username via the querystring, so you have to
> specify that it's a cookie:
>
> if(!isset($_COOKIE["username"])) {
> header("Location:
> http://www.mysite.com/login.php");
> exit;
> }
Note that nothing prevents users from faking a username via their own
cookie either.
-Rasmus