Asp.net Identity: change user role while logged in
<p>I have a page where a logged-in user performs an action and based on that I change the user's role like this:</p>

<pre><code>    var userStore = new UserStore&lt;IdentityUser&gt;();
    var manager = new UserManager&lt;IdentityUser&gt;(userStore);

    IdentityUser user = manager.FindById(TheMembershipID);

    manager.RemoveFromRole(user.Id, "StartUser");
    manager.AddToRole(user.Id, "AppUser");
</code></pre>

<p>Then, on the client, there's a redirect to another page that requires authentication in the AppUser role. The problem is that the user shows as being still logged in as a StartUser.</p>

<p>How do I change the role of a user while he's logged in?</p>