Re: authentification with Internet Explorer

From: Date: Wed, 26 Jul 2000 13:45:21 +0000
Subject: Re: authentification with Internet Explorer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8300@lists.php.net to get a copy of this message
<? //Header("WWW-Authenticate: carga basica=\"Carga de datos\""); Header("WWW-authenticate: basic realm=\"test realm\""); Header("HTTP/1.0 401 Unauthorized"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); echo "No se puede cargar datos si no es un usuario autorizado.\n"; ?> The changes I made will pop up an authentication box. I'm not sure if this helps, but it works over here. -Robert Zwink http://zwink.levitate.org ----- Original Message ----- From: "Martin A. Marques" <martin@math.unl.edu.ar> To: "'PHP Mailing List'" <php-general@lists.php.net> Sent: Wednesday, July 26, 2000 5:27 AM Subject: [PHP] authentification with Internet Explorer > I'm using this code to authenticate users: > > if (! isset($PHP_AUTH_USER)) { > Header("WWW-Authenticate: carga basica=\"Carga de datos\""); > Header("HTTP/1.0 401 Unauthorized"); > header("Cache-Control: no-cache, must-revalidate"); > header("Pragma: no-cache"); > echo "No se puede cargar datos si no es un usuario autorizado.\n"; > exit; > > The problem is that IE 4 or 5, does nothing with the headers I send. It just > falls to the echo at the end. > > What can I do? > > Thanks!!! > > > -- > "And I'm happy, because you make me feel good, about me." - Melvin Udall > ----------------------------------------------------------------- > Martín Marqués email: martin@math.unl.edu.ar > Santa Fe - Argentina http://math.unl.edu.ar/~martin/ > Administrador de sistemas en math.unl.edu.ar > ----------------------------------------------------------------- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#8300) next »