Request.ServerVariables("Logon_User")

  • Thread starter Thread starter T.
  • Start date Start date
T

T.

Hello,

I'm trying to pull the logon user's name using
Request.ServerVariables("LOGON_USER")...which is returning nothing...so I
need help in determining why it's returning nothing, or I need the format in
which it returns the username so that I can hard code it. Does it return
anything with the username?

Thanks...
 
Hi,
It will be empty if anonymous access is allowed. Deny anonymous
authentication and turn on Basic, Digest or Integrated auth to force
authentication and hence get a value for LOGON_USER server variable.

HTH

Hello,

I'm trying to pull the logon user's name using
Request.ServerVariables("LOGON_USER")...which is returning nothing...so I
need help in determining why it's returning nothing, or I need the format in
which it returns the username so that I can hard code it. Does it return
anything with the username?

Thanks...
 
Shiva my friend...this is exactly what I did...and no luck.

strLoginID = Request.ServerVariables("LOGON_USER")
response.write strLoginID

Returns nothing....
 
That option is selected but not available...so I tried every possible
combinations for those options...also my web.config authenication is set to
"Windows"
 
What do you mean the option for integrated authentication is "selected but
not available"?

If you are using NT authentication, dump the logon_user lookup and go with
User.Idenity.Name.

bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top