Groups | Blog | Home
all groups > iis security > december 2004 >

iis security : Grabbing the username



Mitch Stone
12/2/2004 1:23:02 PM
We're running IIS 6.0 on our company intranet, and I am building a subsite
for our team using ASP. I want to capture the username of the person hitting
any given webpage (so I can dynamically determine which links a user sees).

I am aware that we'll need to turn off Anonymous login, and enable Windows
Authentication which obviously recognizes the very username I want to
capture, but have no idea how to grab it!

Can anyone help?

Thanks!
Tom Kaminski [MVP]
12/2/2004 4:27:28 PM
[quoted text, click to view]

In ASP you can use Request.ServerVariables("LOGON_USER").

T-90
12/2/2004 10:39:03 PM
you can also try:

Request.ServerVariables("AUTH_USER")


[quoted text, click to view]
AddThis Social Bookmark Button