Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6271
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!solaris.cc.vt.edu!news.vt.edu!newsfeed-00.mathworks.com!panix!not-for-mail |
|---|---|
| From | Robert Rosenberg <hal9001@panix.com> |
| Newsgroups | comp.lang.php |
| Subject | Query about WWW-Authenticate: Basic and bad UserID/Password recovery |
| Date | Sun, 10 Jun 2012 16:14:30 -0400 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 18 |
| Message-ID | <CBFA7866.270D8%hal9001@panix.com> (permalink) |
| NNTP-Posting-Host | ool-4578bca6.dyn.optonline.net |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="US-ASCII" |
| Content-Transfer-Encoding | 7bit |
| X-Trace | reader1.panix.com 1339359271 21261 69.120.188.166 (10 Jun 2012 20:14:31 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Sun, 10 Jun 2012 20:14:31 +0000 (UTC) |
| User-Agent | Microsoft-Entourage/11.4.0.080122 |
| Thread-Topic | Query about WWW-Authenticate: Basic and bad UserID/Password recovery |
| Thread-Index | Ac1HRaRk4uHtzrM4EeGVtwAfWzxFxA== |
| Xref | csiph.com comp.lang.php:6271 |
Show key headers only | View raw
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.
Back to comp.lang.php | Previous | Next — Next in thread | Find similar | Unroll thread
Query about WWW-Authenticate: Basic and bad UserID/Password recovery Robert Rosenberg <hal9001@panix.com> - 2012-06-10 16:14 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Jerry Stuckle <jstucklex@attglobal.net> - 2012-06-10 16:52 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Robert Rosenberg <hal9001@panix.com> - 2012-06-10 18:17 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Scott Johnson <noonehome@chalupasworld.com> - 2012-06-10 16:49 -0700
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Jerry Stuckle <jstucklex@attglobal.net> - 2012-06-10 20:41 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Richard Damon <news.x.richarddamon@xoxy.net> - 2012-06-10 16:54 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Robert Rosenberg <hal9001@panix.com> - 2012-06-10 18:25 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery Richard Damon <news.x.richarddamon@xoxy.net> - 2012-06-10 19:40 -0400
Re: Query about WWW-Authenticate: Basic and bad UserID/Password recovery "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-06-11 09:36 +0200
csiph-web