Refresh current user's role when changed in ASP.NET identity framework?
问题 Using VS 2013, standard MVC template, and the Identity provider framework The user is logged in, and I have: //.... UserManager.AddToRole(User.Identity.GetUserId(), \"Members\"); # Line X RedirectToAction(\"Index\", \"Members\"); And the Members controller is as follows: [Authorize(Roles=\"Members\")] public class MembersController : Controller { // GET: Members public ActionResult Index() { return View(); } } After Line X is executed, I can confirm that the user is added to the table dbo