Re: extracting login name
| From: | Paul Burney | Date: | Thu, 26 Apr 2001 05:07:51 +0000 |
| Subject: | Re: extracting login name | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8902@lists.php.net to get a copy of this message | ||
on 4/26/01 12:45 AM, olinux at olnx@yahoo.com wrote:
> I have a htpsswd protected directory and would like the client to only
> log on once. Is there a way i can get their USERNAME so that i can pull
> the correct records from the db?
IIRC, $PHP_AUTH_USER and $PHP_AUTH_PW are only set if PHP is sending the
authentication. If they don't work for you, you should be able to use the
environment variable $REMOTE_USER.
HTH,
Paul Burney
http://paulburney.com/