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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
18 - 17 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC