RoleManager, Role Provider and Caching of Roles.

Discussion in 'ASP .Net' started by J, May 1, 2007.

  1. J

    J Guest

    <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!
     
    J, May 1, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Liet Kynes
    Replies:
    0
    Views:
    679
    Liet Kynes
    Nov 26, 2003
  2. RedHair
    Replies:
    2
    Views:
    898
    RedHair
    Feb 21, 2006
  3. =?Utf-8?B?QmVuIFIu?=

    debug a custom membership and role provider?

    =?Utf-8?B?QmVuIFIu?=, Mar 27, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    4,138
    =?Utf-8?B?dWxyaWNoIHNjaHVtYWNoZXI=?=
    May 17, 2006
  4. Erich Peterson

    Membership and Role Provider Question

    Erich Peterson, Jul 2, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    476
    Cowboy \(Gregory A. Beamer\)
    Jul 2, 2007
  5. sloan
    Replies:
    1
    Views:
    678
    Chad Scharf
    Jul 3, 2007
  6. Jena
    Replies:
    1
    Views:
    200
    SuslovN
    Nov 3, 2004
  7. Bob Erwin

    Membership and Role Provider Discussion

    Bob Erwin, Jul 7, 2006, in forum: ASP .Net Security
    Replies:
    0
    Views:
    238
    Bob Erwin
    Jul 7, 2006
  8. John Toop

    roleManager using a Custom role provider

    John Toop, Jun 8, 2009, in forum: ASP .Net Security
    Replies:
    0
    Views:
    927
    John Toop
    Jun 8, 2009
Loading...