Why ASP.NET MVC app doesn't recognize user role changes right after modification?
问题 I have an ASP.NET MVC hybrid app which has an ApiController besides the MVC Controllers. I'm using role based authorization attributes within both the MVC Controllers and the ApiController both at the controller level and sometimes on method level. I'm using Entity Framework 6 with Model based design. The Controller level authorizations: [Authorize(Roles = "Administrator,RegularUser")] public class EngineController : ApiController { or [System.Web.Mvc.Authorize(Roles = "Administrator