Re: PHP Auth problem

From: Date: Sat, 22 Sep 2001 01:55:08 +0000
Subject: Re: PHP Auth problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68257@lists.php.net to get a copy of this message
If your code doesn't look like this: http://www.php.net/manual/en/features.http-auth.php you did it wrong. Replace the == test with your imap_open, but don't go re-arranging the if/else logic or the header() order. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Alex Sofronie <maxx@mail.tehnoton.com> Newsgroups: php.general To: PHP General Mailing List <php-general@lists.php.net> Sent: Saturday, September 15, 2001 5:50 PM Subject: PHP Auth problem > Hi all > > I have a rather strange problem with php auth: > > i want to authenticate a user through php and validate it through > imap_open function (to access his email). > I send WWW-Authenticate header like this: > > header("WWW-Authenticate: Basic Realm=\"Private\""); > > > After, i check for isset($PHP_AUTH_USER) and validate it through PHP. > > Can anyone tell me why, for a real user (it really exists), the > authentication simply fails and asks me again for a username and password, > without even leaving the authenticate intrinsic routine (the script just > keeps telling me that the auth is failed, but WITHOUT running imap_open or > any other part of the script). > > Why is that? > > If anyone has the time and the understanding, i can post the code > fragment. > Thanks > > ------------------------- > Alexandru SOFRONIE > maxx@mail.tehnoton.com > ------------------------- > IT Software Dept. > Omega-Tehnoton GROUP > +40-93-670773 > ------------------------- > >

« previous php.general (#68257) next »