$_SERVER['LOGON_USER'];

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
electra
Forum Newbie
Posts: 2
Joined: Fri Jun 05, 2009 10:10 am

$_SERVER['LOGON_USER'];

Post by electra »

When I run $_SERVER['LOGON_USER'];from my machine it returns elliottgroup\dgriffiths

When I run the same php page on a users PC it returns ellittgroup\administrator

Can anybody tell me why.

I have administrator rights by the way.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: $_SERVER['LOGON_USER'];

Post by Benjamin »

:arrow: Moved to PHP - Code
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: $_SERVER['LOGON_USER'];

Post by mikemike »

Because you're logged on as dgriffiths?
electra
Forum Newbie
Posts: 2
Joined: Fri Jun 05, 2009 10:10 am

Re: $_SERVER['LOGON_USER'];

Post by electra »

So why when a user opens the php page does it not show elliotgroup\username
Post Reply