Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > RoleManager, Role Provider and Caching of Roles.

Reply
Thread Tools

RoleManager, Role Provider and Caching of Roles.

 
 
J
Guest
Posts: n/a
 
      05-01-2007
<roleManager enabled="true" defaultProvider="CustomProvider"
cacheRolesInCookie="true"
cookieName=".MOSSROLES" cookieTimeout="30" cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true" createPersistentCookie="false"
cookieProtection="All">
<providers>
<add name="CustomProvider" applicationName="/"
type="CustomProvider.CustomProvider, CustomProvider, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=a456f6d308976des" />
</providers>
</roleManager>


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?

Thanks!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Membership or Role Provider // Provider Model // Factories .. How does MS do it? sloan ASP .Net 1 07-03-2007 08:17 PM
AzMan Role Based Security vs. ASP.NET Role Based Security Kursat ASP .Net Security 1 05-07-2007 01:33 PM
How to create Profile,Membership and Role provider with SQL2000/2005 RedHair ASP .Net 2 02-21-2006 02:03 AM
Role-Based Security: ACLs and Role Hierarchies Liet Kynes ASP .Net 0 11-26-2003 08:08 AM
Role-based security: Access the role of current user Jesper Stocholm ASP .Net 2 08-23-2003 06:59 PM



Advertisments