If your code doesn't look like this:
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 [EMAIL PROTECTED] address is an endangered species -- Use
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: PHP General Mailing List <[EMAIL PROTECTED]>
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
> -------------------------
>     IT Software Dept.
>   Omega-Tehnoton GROUP
>      +40-93-670773
> -------------------------

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to