I want to implement single sign on.
I get the user name of local pc using many codes(Given below)
Code
string hostName = System.Net.Dns.GetHostName();string fff= System.Environment.GetEnvironmentVariable("UserName");Code
string ff=Request.LogonUserIdentity.Name.Substring(Request.LogonUserIdentity.Name.LastIndexOf(@"\") + 1);
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;string fff= System.Environment.GetEnvironmentVariable("UserName");the above code i used my local code these is get the local pc name after
i host my application this is get the user name of LOCAL PC Computer name not get user name of local PC
How to fix it.


Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 9, 2017, 8:03 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 9, 2017, 8:06 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Feb 9, 2017, 9:35 PM EST
RajaRank #1,035 · 1.9K reputationPosted Feb 9, 2017, 8:04 PM EST
Nitin Sontakke
How to fix it sir.RajaRank #1,035 · 1.9K reputationPosted Feb 9, 2017, 8:19 PM EST
RajaRank #1,035 · 1.9K reputationPosted Feb 14, 2017, 3:43 AM EST