Re: $PHP_AUTH_USER
| From: | Jason Cox | Date: | Thu, 03 Aug 2000 20:39:48 +0000 |
| Subject: | Re: $PHP_AUTH_USER | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10021@lists.php.net to get a copy of this message | ||
Does anyone have a good link on this type of authentication. I'm especially
interested in Digest-type auth. I've read over the specs at
http://www.ietf.org/rfc/rfc2617.txt but that
wasn't too helpful at my present
knowledge level. A link to examples would be especially nice.
Thx,
Jason
> > Part of the code:
> > if (!isset($PHP_AUTH_USER))
> > {
> > // If empty, send header causing dialog box to appear
> > header('WWW-Authenticate: Basic realm="FGN Members Area"');
> > header('HTTP/1.0 401 Unauthorized');
> > exit;
> > }