asp.net - ASP .NET Custom RoleProvider not respecting cacheRolesInCookie="true" -


I have implemented a custom role provider, and have configured it in my web.config file like this:

  & lt; Enable roleManager = "true" default provider = "TDRoleProvider" cacheRolesInCookie = "true" & gt; & Lt; Providers & gt; & Lt; Clear /> & Lt; Add name = "TDRoleProvider" type = "TDRoleProvider" /> & Lt; / Providers & gt; & Lt; / RoleManager & gt;  

I overridden the GetRolesForUser function in my custom role provider, and I stepped into it, and it works fine - increases the number of roles for user testing I However, I've found that GetRolesForUser is called on every request that the user calls. InInroll I wrote that in the other app, it only calls once, then the result is in the cookie for any reason, caching is not working for this app. Any idea why?

"no cache or cache) went through many design iterations in rollupinthin, and Ultimately, we just sat on caching for the method highlighted by the IPIN interface (i.e.I.RO.L.). "


Comments