#50339 [Opn->Fbk]: unreliable performance of authentication thru headers
| From: | bjori@php.net | Date: | Mon, 30 Nov 2009 20:57:29 +0000 |
| Subject: | #50339 [Opn->Fbk]: unreliable performance of authentication thru headers | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3373@lists.php.net to get a copy of this message | ||
ID: 50339
Updated by: bjori@php.net
Reported By: premanand_prabhu at rediffmail dot com
-Status: Open
+Status: Feedback
-Bug Type: Website problem
+Bug Type: Documentation problem
Operating System: Windows/apache
PHP Version: 5.2.11
New Comment:
faq.using doesn't mention this code, where did you find it?
Previous Comments:
------------------------------------------------------------------------
[2009-11-30 20:16:05] premanand_prabhu at rediffmail dot com
Description:
------------
// autho.php
<?
if( (empty($PHP_AUTH_PW)) || (empty($PHP_AUTH_USER)) ||
($PHP_AUTH_USER!='ramesh') ||
($PHP_AUTH_PW!='asdf'))
{
header('WWW-Authenticate: Basic realm="my first autho"');
exit(" authentication required ");
}
?>
// below is the code used to include the aotho.php in the
//below script
//{{QUESTION:}} At times the code works fine and
//asks for username / password before page is display but not
//at all times. sometimes it just shows up the page
//without username / password. Any reasons?? pls guide!!tks
{{QUESTION:}}
<?
require_once("autho.php");
?>
Reproduce code:
---------------
---
From manual page: faq.using
---
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50339&edit=1