Web programming - easy way to grab Windows login name?

DougK62

Diamond Member
Mar 28, 2001
8,035
6
81
The question is simple. Is there an easy way (hopefully using ASP, PHP, or something simpler) to grab a user's Windows login name when they go to a web page?

My situation is that I'm making an intranet page, and I'd like it to customize web links based on who is viewing it without having the user do some sort of authentication.
 
Nov 7, 2000
16,403
3
81
asp it is, its just something like:

<% stringvar = Request.servervariables("REMOTE_USER") %>

not sure about the syntax or if remote user is right. just google asp server variables. pop that into a session var and you are good to go


also WRONG FORUM
 

torpid

Lifer
Sep 14, 2003
11,631
11
76
Originally posted by: DougK62
The question is simple. Is there an easy way (hopefully using ASP, PHP, or something simpler) to grab a user's Windows login name when they go to a web page?

My situation is that I'm making an intranet page, and I'd like it to customize web links based on who is viewing it without having the user do some sort of authentication.

If you use integrated Windows authentication on the web site you can. If it's anonymous access enabled, you can't easily.