Re: [PHP] $PHP_AUTH_USER From: Jason Cox (jasonc <email protected>)
Date: 08/03/00

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;
> > }

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>