FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Query about WWW-Authenticate: Basic and bad UserID/Password recovery
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Query about WWW-Authenticate: Basic and bad UserID/Password recovery [message #178349] Sun, 10 June 2012 20:14 Go to previous message
Robert Rosenberg is currently offline  Robert Rosenberg
Messages: 6
Registered: May 2012
Karma:
Junior Member
Per the samples I have seen in manuals and on the php,net site I store the
header statements in a if(!isset($_SERVER['PHP_AUTH_USER'])) delineated
section.

I test the supplied UserID and Password to see if they are a valid pair. My
problem is that when they are not (right now I have a hard coded pair to use
in my testing) I issue an error message and have the user try again (by
having the page relaunched via a link). The problem is that the IF sees that
the UserID is already set (to the bad value) and thus will not reissue the
login menu. How do I invalidate the stored value so that the IF will return
TRUE and thus cause the menu to be issued? I tried adding a
$_SERVER['PHP_AUTH_USER'])=""; or a unset($_SERVER['PHP_AUTH_USER']); in my
error routine (with the link) I still do not get the the menu.

Please Help.

Thank you.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PHP Sessions and XML
Next Topic: PEAR in Firefox
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 22:14:25 GMT 2024

Total time taken to generate the page: 0.03581 seconds