title: User.Identity.IsAuthenticated is always false
body: <p>I am using Membership provider but how do I get my username and password to login/signin?  When I check to see with this code:</p>
  
  <pre><code>if (User.Identity.IsAuthenticated)
  // this code always returns false
  </code></pre>
  
  <p>I have this before when the user uses asp:Login to login:</p>
  
  <pre><code>if (Membership.ValidateUser(email, password))
  {
      // this is true but what am I missing here to make above not be false?
  </code></pre>
  
  <p>The so called duplicate question/answer uses SetAuthCookie which according to this (<a href="https://stackoverflow.com/questions/34753245/system-web-httpcontext-current-user-identity-isauthenticated-fails-sometimes">System.Web.HttpContext.Current.User.Identity.IsAuthenticated fails sometimes</a>) causes issues and I need to avoid it.</p>