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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get windows username with asp 2

Status
Not open for further replies.

Gert74

Technical User
Jan 26, 2001
48
NL
Hello. Does someone know how to get the windows username. It's for use on a intranet, so you may assume that evryone uses IE6 and is logged on in a windows environment. I want to writeout the username something like this:

Response.write("hello " & strUsername)

Gert
 
response.write(request.servervariables("LOGON_USER"))

You need to turn off Anonymous and turn on Window Authentication on IIS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top