Re: Custom RoleProvider question -- saving roles
- From: Dominick Baier [DevelopMentor] <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 22 Mar 2006 15:42:39 +0000 (UTC)
it is cached in the memory of the browser - and will be gone when the user closes the browser window.
I would not use slidingExpiration here - this guarantees the you get updated role information every 30 min.
---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Dominick,
I changed the web.config as follows
<roleManager defaultProvider="MyRoleProvider" enabled="true"
cacheRolesInCookie="true"
cookieName=".ASPXROLES"
cookiePath="/"
cookieTimeout="30"
cookieRequireSSL="false"
cookieSlidingExpiration="true"
createPersistentCookie="false"
cookieProtection="All">
and you are right, it did not hit the database again, it just used the
data in the cookie.
If this cookie is not being written/stored on the user's machine,
then where is it being stored?
Thanks,
Burak
.
- References:
- Re: Custom RoleProvider question -- saving roles
- From: Burak Gunay
- Re: Custom RoleProvider question -- saving roles
- Prev by Date: Impersonation in ASP.NET 2.0 (works from XP, not 2003)
- Next by Date: RE: Best way to provide security when need a WindowsIdentity
- Previous by thread: Re: Custom RoleProvider question -- saving roles
- Next by thread: Re: Custom RoleProvider question -- saving roles
- Index(es):
Relevant Pages
|