title: ASP.NET MVC User.Identity.GetUserId() returning wrong GUID
body: <p>I am calling this method from within a Controller method while logged in as a user, with the standard DefaultMembershipProvider code in MVC5 that comes completely out of the box. Like this:</p>
  
  <pre><code> string LoggedInUsersId = User.Identity.GetUserId();
  </code></pre>
  
  <p>When debugging, this method call returns a GUID that is completely different to the "Id" field GUID stored in the AspNetUsers table. As I only have one user in this table, I have no idea where this other GUID is coming from?</p>
  
  <p>I thought that the Id field value from the AspNetUsers table would be returned for the currently logged in user when you call User.Identity.GetUserId()?</p>
  
  <p>I am definitely checking the same database/environment and looking at the right place.</p>