RE: [PHP3] Headers after authentication
| From: | Sam Liddicott | Date: | Fri, 16 Jun 2000 16:37:19 +0000 |
| Subject: | RE: [PHP3] Headers after authentication | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2085@lists.php.net to get a copy of this message | ||
I think some browsers are sensitive to the order among the headers of the
Location Header, however I *know* you don't have to stop after sending the
401 header, but you can send a page as well, the page contents being
conditional upon auth.
I have a page which displays a diary only if auth failed, or a diary and
address book if auth succeeded.
sam
-----Original Message-----
From: Boget, Chris
To: php-general@lists.php.net; Php3 (E-mail)
Sent: 16/06/00 17:38
Subject: [PHP3] Headers after authentication
If I send the authentication headers (ie,
Header( "WWW-authenticate: basic realm=\"$realm\"" );
Header( "HTTP/1.0 401 Unauthorized" );
)
and the user hits cancel, can I send a
header( "location: " );
to the browser to redirect them? Or would
that not work because stuff was already sent
tot he browser?
I'm doing this right now and it isn't working;
the redirected to page is not coming up and I'm
trying to figure out why. If the answer to my
above questions are "No" and "Yes" respectively,
then I'll know. If they aren't, then I'm going
to have to go back to the drawing board to try
and figure out what's going on.
Chris
--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin@lists.php.net