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.
 
Back
Top