Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199903

Re: [PHP3] How do I log out? From: Alex Killing (alexkill <email protected>)
Date: 03/26/99

> I'm able to log in and test my password against the NT ACL.
> The problem I'm having is if I type in the wrong password. I can handle
> that in my code, but I cannot get the authorization script to 'forget' my
> previous attempt so I can log in again.

<?php
 if ($PHP_AUTH_USER==$my_user) {
 Header("WWW-authenticate: basic realm=\"mess\"");
 Header("HTTP/1.0 401 Unauthorized");
 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";
 }
?>

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>