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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: premanand_prabhu at rediffmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 09:01:38 2025 UTC