Re: Authentication

From: Date: Tue, 04 Jul 2000 20:59:49 +0000
Subject: Re: Authentication
Groups: php.general 
Request: Send a blank email to php-general+get-4806@lists.php.net to get a copy of this message
Addressed to: Frederic.Lhoest@afrilink.net php-general@lists.php.net ** Reply to note from Frederic.Lhoest@afrilink.net Tue, 04 Jul 2000 15:57:47 +0200 > > Hi to all, > > I'm trying to catch the user name and the password of the user logged > in with http authentication from the webserver ... how can I do that > ... I heard about $PHP_AUTH_USER and $PHP_AUTH_PASS but these > variable seems to be unset or empty ... > If Apache is doing the password verification, you can't. The password is between the viewer and Apache. You can get the user name from $REMOTE_USER, but the password is not forwarded to PHP. If Apache is handling the password why do you need to see it? Rick Widmer Internet Marketing Specialists www.developersdesk.com

« previous php.general (#4806) next »