title: Update user's membership role
body: <p>I am using asp.net MVC 5 identity 2.0
  The administrator is able to change user’s role but used must re-log to see the changes. First thought was to re-log user manually but I failed. After that I thought of dynamically changing user’s role or something else. Could you provide me the right way?
  I set user’s role using UserManager.AddToRolesAsync
  I have tried a lot of things like:</p>
  
  <pre><code>var memberUser = Membership.GetUser(user.UserName.ToString());
  if (memberUser.IsOnline)
  {
          FormsAuthentication.SignOut();
  }
  </code></pre>
  
  <p>or also try to clean up my cookies.
  I dunno how I can sign out another user.
  Also I have read articles like these</p>
  
  <p><a href="http://w3facility.org/question/mvc-5-addtorole-requires-logout-before-it-works/" rel="nofollow noreferrer">http://w3facility.org/question/mvc-5-addtorole-requires-logout-before-it-works/</a></p>
  
  <p><a href="https://stackoverflow.com/questions/24286489/how-do-i-forcefully-propagate-role-changes-to-users-with-asp-net-identity-2-0-1">How do I forcefully propagate role changes to users with ASP.NET Identity 2.0.1?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/12379215/how-to-force-logout-user-when-his-her-username-is-changed-by-another-user">How to force logout user when his/her username is changed by another user?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/25878218/asp-net-identity-2-0-sign-out-another-user/25887380#25887380">ASP.net Identity 2.0 Sign-out another user</a></p>