Re: username of a currently logged in user
| From: | Adam Wright | Date: | Tue, 30 Oct 2001 15:51:15 +0000 |
| Subject: | Re: username of a currently logged in user | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-69337@lists.php.net to get a copy of this message | ||
Heya,
Just FYI, php-dev is for developing PHP (not developing *with* PHP) - You're
better off on php-general@lists.php.net.
$PHP_AUTH_USER is the right variable - Odds on, if there really is a user
logged in, you've in a function and have forgotten to globalise it (it's not
implicitly global).
adamw
----- Original Message -----
From: <robin.gudgeon@bt.com>
To: <php-dev@lists.php.net>
Sent: Tuesday, October 30, 2001 3:38 PM
Subject: [PHP-DEV] username of a currently logged in user
> Hi,
> I've written a site using PHP that relies on htaccess authentication. This
> is all working fine, but I am having problems finding the username of the
> currently logged-in user (which I need to be able to change passwords). I
> thought $user contained the user, or $PHP_AUTH_USER but neither of these
> hold anything...
> any ideas?
> Cheers
> Rob
> -------------------------------------
> Rob Gudgeon
> BT Systems Engineer
> Distributed Platform Strategy & Design
> BT Affinitis - Computing Partners
> Phone: 020 7250 5156
> Mobile: 07720 052692
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>