0

I tried using the following codes to get my clients info (MyDomain\Username):

HttpContext.Current.Request.ServerVariables["LOGON_USER"];
HttpContext.Current.User.Identity.Name.ToString();

Page.User.Identity.Name.ToString();

All of them works fine, well atleast on my localhost. But when i deployed it in our server, and tried to access it in our intranet those codes return the info of the SERVER Machine, not the client's machine.

PS: the authentication mode is Windows and The IIS is also in windows auth...

Erik Philips
  • 51,408
  • 11
  • 123
  • 146

1 Answers1

0

You can try using WindowsIdentity.GetCurrent()

Pouki
  • 1,624
  • 11
  • 18