Get Remote User Name

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

Guest

I need to be able to get the windows Login Name of a remote user when they open a web app I have developed. CVan anyone supply some sample code that accomplishes this task

Thanks

Dave Bailey
 
Dave,

If they have logged into your site using Windows authentication (the
login is based on the users in the local machine, or the domain), then you
should be able to set the impersonate attribute in the <identity> element in
the web.config file to true, and the User property will have the principal
that represents the client.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Dave Bailey said:
I need to be able to get the windows Login Name of a remote user when they
open a web app I have developed. CVan anyone supply some sample code that
accomplishes this task.
 

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