Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Windows Username

Status
Not open for further replies.

Jiminald

Programmer
Oct 11, 2006
39
GB
Hi,

I am developing an intranet that shows different content to different users.

So, I need to get the currently logged on username. I have Apache2.0.59, PHP5 installed on a win2k3 box.

I know this is the PHP board, but javascript and VBScript suggestions are also welcome.

Thanks in advanced :)
 
pretty sure you can do this with IE and IIS (select integrated windows authentication in directory security). not sure about apache and other browsers tho. maybe digest authentication might help?

 
If you use .htaccess authentication, then this will tell you the logon user name:

Code:
$_SERVER["REMOTE_USER"]

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top