Re: clear contents?
| From: | Franklin van Velthuizen | Date: | Fri, 07 Sep 2001 20:03:02 +0000 |
| Subject: | Re: clear contents? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66461@lists.php.net to get a copy of this message | ||
"Jeremy Morano" <jeremy@prepresshelp.com> wrote in message
news:MNEGLBDELEMBJDMIAFPCKEHHCLAA.jeremy@prepresshelp.com...
>
> Hi everone...
> I'm having a little problem. The code below pops up a password dialog box
> where the user types in a username and a password to be able to proceed.
> However, if the user does not close the browser and goes back to the link,
> which they pops up the diolog box again and they don't have to type in
there
> username and password again. They are remembered. I would like it so that
> the user has to type in there username and password any and every time
that
> the diolog box is called on. Doe anyone know how to do this? I tried to
> clear the contents of PHP_AUTH_USER and PHP_AUTH_PW at the top of the page
> but that just messed things up. Can someone please help me?
>
> [some code]
> header( 'WWW-Authenticate: Basic realm="Private"' );
> header( 'HTTP/1.0 401 Unauthorized' );
> echo 'Authorization Required.';
> exit;
>
Wouldn't it be enough to randomly create a name for the realm?
/ Franklin