php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50339 unreliable performance of authentication thru headers
Submitted: 2009-11-30 20:16 UTC Modified: 2009-12-08 01:00 UTC
From: premanand_prabhu at rediffmail dot com Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: 5.2.11 OS: Windows/apache
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-11-30 20:16 UTC] 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
---



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-30 20:57 UTC] bjori@php.net
faq.using doesn't mention this code, where did you find it?

 [2009-12-08 01:00 UTC] doc-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Nov 17 15:01:41 2019 UTC