windows login username

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I retrieve the currently logged in user's username?

I have tried the option below:
Request.ServerVariables("LOGON_USER") while denying access to the Anonymous
user both in the config and removing the anonymous authentication option in
IIS.
This works locally but on a remote server it will always prompt for a
username and password, which won't be acceptable.

So I have been wondering if it is possible to use pure javascript. --
I think it is possible to use getObject(). but i don't know how.

All I want is the username the user typed in to login. How can I get hold of
this?

thank you

CR
 
Hi,

Check this in your web.config:

<authentication mode="Windows"/>
<identity impersonate="true"/>
 

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