Re: authenticate
| From: | Owe Andr� J�rgensen | Date: | Thu, 06 Sep 2001 09:46:22 +0000 |
| Subject: | Re: authenticate | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66184@lists.php.net to get a copy of this message | ||
Yes, that would be simple... if you was thinking about not showing the
'Realm' variable.
I've never heard of any way of ridding yourself of the Site stuff..
if(!isset(PHPAUTH_USER)) {
header('WWW-Authenticate: Basic realm=""');
header('HTTP/1.0 401 Unauthorized');
echo "Some error message goes here";
exit;
}
The code above removes the Realm variable.
but if I were you, I'd go for Sessions instead..
good luck
André Jørgensen
"Jeremy Morano" <jeremy@prepresshelp.com> wrote in message
news:MNEGLBDELEMBJDMIAFPCEEPDCKAA.jeremy@prepresshelp.com...
> Hi,
>
> Is there anyway that I can hide my website name in the authenticate
window?
>
> if ( ! $auth ) {
>
> header( 'WWW-Authenticate: Basic realm="Private");
> header( 'HTTP/1.0 401 Unauthorized' );
> echo 'Authorization Required.';
> exit;
>
> }