title: How to get windows logged in user username using only Forms authentication
body: <p>How to get windows logged in user username using only Forms authentication in asp.net mvc application after deploy on iis I try with many methods but no one don't work correctly like this </p>
  
  <pre><code>var userName1 = System.Web.HttpContext.Current.User.Identity.Name;
  var userName2 = WindowsIdentity.GetCurrent();
  </code></pre>