Re: getting rid of form variable definition
| From: | Rasmus Lerdorf | Date: | Mon, 03 Jul 2000 17:56:11 +0000 |
| Subject: | Re: getting rid of form variable definition | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4540@lists.php.net to get a copy of this message | ||
> What I am trying to do is send a varaiable, say "reauthenticate", from
> a form to change the username and password. So I'm trying something
> like
>
> if ($reauthenticate) {
> authenticate();
> }
>
> The authenticate function exits and the script is recalled, but the
> variable $reauthenticate is still set so I can't get past this point.
> I guess the browser is sending back this variable each time. So how
> do you clear this variable?
The browser sends the Authorization header which PHP sees and sets the
$PHP_AUTH_USER and $PHP_AUTH_PW variables accordingly.
-Rasmus