On Fri, January 20, 2006 9:32 am, David BERCOT wrote:
>> David BERCOT wrote:
>> > I've tried :
>> > $_SERVER["PHP_AUTH_USER"] = NULL;
>> > without succes...
>>
>> http://www.php.net/unset
>>
>> e.g. unset($_SERVER['PHP_AUTH_USER']);
>>
>> It might, however, be better practice to used an authorisati
On Fri, January 20, 2006 8:24 am, David BERCOT wrote:
> I use this program to force a user to authenticate :
> if (!isset($_SERVER["PHP_AUTH_USER"])) {
> header("WWW-Authenticate: Basic realm=\"Intranet SDSED\"");
> header("HTTP/1.1 401 Unauthorized");
> }
> Everything is ok except
> David BERCOT wrote:
> > I've tried :
> > $_SERVER["PHP_AUTH_USER"] = NULL;
> > without succes...
>
> http://www.php.net/unset
>
> e.g. unset($_SERVER['PHP_AUTH_USER']);
>
> It might, however, be better practice to used an authorisation state
> variable, or something similar, i.e.
>
> if (! $a
On 20 Jan 2006, at 14:24, David BERCOT wrote:
I use this program to force a user to authenticate :
if (!isset($_SERVER["PHP_AUTH_USER"])) {
header("WWW-Authenticate: Basic realm=\"Intranet SDSED\"");
header("HTTP/1.1 401 Unauthorized");
}
Everything is ok except a detail : if the
David BERCOT wrote:
Hi,
I use this program to force a user to authenticate :
if (!isset($_SERVER["PHP_AUTH_USER"])) {
header("WWW-Authenticate: Basic realm=\"Intranet SDSED\"");
header("HTTP/1.1 401 Unauthorized");
}
Everything is ok except a detail : if the user makes a mistake
David
David BERCOT wrote:
> I've tried :
> $_SERVER["PHP_AUTH_USER"] = NULL;
> without succes...
http://www.php.net/unset
e.g. unset($_SERVER['PHP_AUTH_USER']);
It might, however, be better practice to used an authorisation state
variable, or something similar, i.e.
if (! $auth) {
// H
David BERCOT wrote:
> I use this program to force a user to authenticate :
> if (!isset($_SERVER["PHP_AUTH_USER"])) {
> header("WWW-Authenticate: Basic realm=\"Intranet SDSED\"");
> header("HTTP/1.1 401 Unauthorized");
> }
> Everything is ok except a detail : if the user makes a mis
Hi,
I use this program to force a user to authenticate :
if (!isset($_SERVER["PHP_AUTH_USER"])) {
header("WWW-Authenticate: Basic realm=\"Intranet SDSED\"");
header("HTTP/1.1 401 Unauthorized");
}
Everything is ok except a detail : if the user makes a mistake (for
example, a bad pa
8 matches
Mail list logo