I remember what I used to enter the user ID (for the Intranet application) using the following code: -
string WindowsLoginID= System.Web.HttpContext.Current.Request.ServerVariables["AUTH_USER"];
It still works great when I use it in code behind an ASP application. But when I use the same code in MVC4 Application , it returns me blank .
I run my project as Use Local IIS Web Server , and my web.config is mine
<authentication mode="Windows"> </authentication>
Please let me know if I am doing something stupid.
Shubh source share