phpbar.de logo

Mailinglisten-Archive

Re: [php] Re: Authentisierung reset?
Archiv Mailingliste php_(at)_infosoc.uni-koeln.de

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php] Re: Authentisierung reset?



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

Home | Main Index | Thread Index

php::bar PHP Wiki   -   Listenarchive