Re: how to recognize user login name?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "David Smith" <davidsmith@byu.edu>


> Spychała Wojciech wrote:
>
> >I have to do user recognizing in m php project. Simplest method i know is
to
> >recognize for example login name (when user is logging into his local PC)
> >
> >I've tried to use $USERNAME variable but it isnt what i want because it
> >recognize login name on server not remote user
> >
>
> If you are referring to the Windows login name, this is not possible
> with PHP via the web browser.

Sure it is. It's usually in $_SERVER['LOGON_USER'] or something similar.
I've only seen this work with IIS when anonymous access is turned off,
though. This means you'll only get names for people that are on your
network, it won't work for people coming to your site from outside.

---John Holmes...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux