Re: .htaccess username

From: Date: Thu, 16 Aug 2001 08:15:45 +0000
Subject: Re: .htaccess username
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-62991@lists.php.net to get a copy of this message
Pavel Jartsev wrote:
Tribun wrote:
...hmmm, I would guess there is a way, but I dont know why... Can I read out the active username, which has just logged in through a .htaccess authentication??? Like the access data.. user: patrick pass: linux can PHP reads out the usersname "patrick" ?? (and if ,... how? ;)
$PHP_AUTH_USER and $PHP_AUTH_PW.
It's also possible to use $REMOTE_USER. I don't know of any $REMOTE_PASS, so the suggestion above it good ;) -- Stig-Ørjan Smelror Systemutvikler Linux Communications AS Sandakerveien 48b Box 1801 - Vika N-0123 Oslo, Norway tel. +47 22 09 28 80 fax. +47 22 09 28 81 http://www.lincom.no/

« previous php.general (#62991) next »