Velocity Reviews

Velocity Reviews (
-   ASP .Net (
-   -   RoleManager, Role Provider and Caching of Roles. (

J 05-01-2007 05:08 PM

RoleManager, Role Provider and Caching of Roles.
<roleManager enabled="true" defaultProvider="CustomProvider"
cookieName=".MOSSROLES" cookieTimeout="30" cookiePath="/"
cookieSlidingExpiration="true" createPersistentCookie="false"
<add name="CustomProvider" applicationName="/"
type="CustomProvider.CustomProvider, CustomProvider, Version=,
Culture=neutral, PublicKeyToken=a456f6d308976des" />

Who implements the functionality for the cacheRolesInCookie attribute?
Does the RoleManager take care of it? Or should the RoleProvider
implement it?

I have a .NET app that runs off this custom Role Provider. However, it
does not seem to respect the "cacheRolesInCookie" attribute. When I
login to the app, it does not create a cookie and wants to reference
the "GetAllRolesForUser" function for every page request. Should the
GetAllRolesForUser function create the cookie?


All times are GMT. The time now is 10:21 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.