Page 1 of 1

How to get user login name under IIS through PHP

Posted: Sun Jan 25, 2004 10:38 pm
by m_mak
Hi Everyone,

I want to do sth like single sign-on of the website using php under IIS. :?:

Would like how to get network user login name so that able to identify user without pompt to ask for username and password. Users r under a same domain network using Win2K.

Many Thanks,
m_mak

Posted: Mon Jan 26, 2004 5:34 am
by twigletmac
Check out the output of:

Code: Select all

echo '<pre>';
print_r($_SERVER);
echo '</pre>';
I'm able to get the logon name from $_SERVER['REMOTE_USER'].

Mac