Exactly as per the title.
Simply in my HomeController I have:
string Username = User.Identity.Name;
Why is this value always blank?
Have you attached Authorize attribute to ur action or controller?
public class HomeController : Controller { [Authorize] public ActionResult Index() { string userName = User.Identity.Name; return View(); } }