title: How to resolve: The provided anti-forgery token was meant for a different claims-based user than the current user
body: <p>I am getting this error:</p>
  
  <pre><code>The provided anti-forgery token was meant for a different claims-based user than the current user.
  </code></pre>
  
  <p>and I am not sure how to correct this..</p>
  
  <p>I have a MVC5 site and in this site I have a login page.</p>
  
  <p>This is the scenario that it occurs on.</p>
  
  <ol>
  <li>User AAA logs in. (No issues)</li>
  <li>I attempt to access a view where the user does not have access.
  
  <ul>
  <li>I have the class decorated with an Authorize(Roles="aa")</li>
  </ul></li>
  <li>The view then logs the user off and puts them back to the login page.</li>
  <li>User AAA logs in. (This time I get the error mentioned above)</li>
  </ol>
  
  <p>To note:
  <br>I am using customErrors and this is where I see the error message.</p>
  
  <p>When I log the user out I am running this method:</p>
  
  <pre><code>[HttpGet]
  public void SignOut()
  {
      IAuthenticationManager authenticationManager = HttpContext.GetOwinContext().Authentication;
      authenticationManager.SignOut(MyAuthentication.ApplicationCookie);
  }
  </code></pre>
  
  <p>Could I possibly be missing something on the SignOut?</p>
  
  <p>UPDATE:
  <br>This only occurs because of step #2 listed above.
  <br>If I log in, then log out (calling same code) then log back in, then I do not have this issue.</p>