Headers after authentication
| From: | Boget, Chris | Date: | Fri, 16 Jun 2000 16:38:22 +0000 |
| Subject: | Headers after authentication | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-2083@lists.php.net to get a copy of this message | ||
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