phpbar.de logo

Mailinglisten-Archive

[php] Re: Authentisierung reset?

[php] Re: Authentisierung reset?

Alex Killing alexkill_(at)_mail.online-club.de
Mon, 15 Mar 1999 21:12:35 +0100


Hi,

try this :

<?php
 if ($PHP_AUTH_USER==$my_user) {
 Header("WWW-authenticate: basic realm=\"do_auth:$do_auth\"");
 Header("HTTP/1.0 401 Unauthorized");
 echo "Cancel It\n";
 exit;
 }
 else {
 echo "AUTH_USER : ---".$PHP_AUTH_USER."---<br>\n";
 echo "AUTH_PW : ---".$PHP_AUTH_PW."---<br><br>\n";
 echo "<a
href=\"$PHP_SELF?my_user=".rawurlencode($PHP_AUTH_USER)."\">Try
Again</a><br>\n";
 }

?>

Gruss,
Alex


php::bar PHP Wiki   -   Listenarchive