note 71117 added to features.http-auth

From: Date: Mon, 13 Nov 2006 11:08:30 +0000
Subject: note 71117 added to features.http-auth
Groups: php.notes 
Request: Send a blank email to php-notes+get-119651@lists.php.net to get a copy of this message
I have problems with a bit of code of my new web. In the authenticate, the server, jump the code of the autentication and only execute de meta (with echo in the code), the server don't read the http headers. The code is this: if(!$_SERVER['PHP_AUTH_USER']) { header('WWW-Authenticate: Basic realm="Sistema de administración ARETECEL'); header('HTTP/1.0 401 Unauthorized'); echo ("<META http-equiv=\"Refresh\" content=\"0; URL=../error.htm\">"); exit; } else { //En el caso de haber proporcionado un usuario y contraseña, la comprobamos //Cargamos las variables introducidas $user=$_SERVER['PHP_AUTH_USER']; $md5_pass=md5($_SERVER['PHP_AUTH_PW']); } It's very simply, I think is a server problem. I try to change cgi.rfc2616_headers of php.ini to 0 and to 1 and the response is the same in both cases. Any idea? Thank you :) ---- Server IP: 130.206.1.5 Probable Submitter: 83.138.236.133 ---- Manual Page -- http://www.php.net/manual/en/features.http-auth.php Edit -- https://master.php.net/note/edit/71117 Del: integrated -- https://master.php.net/note/delete/71117/integrated Del: useless -- https://master.php.net/note/delete/71117/useless Del: bad code -- https://master.php.net/note/delete/71117/bad+code Del: spam -- https://master.php.net/note/delete/71117/spam Del: non-english -- https://master.php.net/note/delete/71117/non-english Del: in docs -- https://master.php.net/note/delete/71117/in+docs Del: other reasons-- https://master.php.net/note/delete/71117 Reject -- https://master.php.net/note/reject/71117 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#119651) next »