Well , per the documentation
"If a user's browser allows cookies, ASP.NET can optionally store role
information in an encrypted cookie on the user's computer. On each page
request, ASP.NET reads the cookie and populates the role information for
that user from the cookie."
Shouldn't this cached information be used across requests?
"Gabriel Lozano-Morán" <ab***@frontbridge.comwrote in message
news:Oj******************@TK2MSFTNGP02.phx.gbl...
and does each subsequent call to IsInRole() in a single http request cause
a database roundtrip?
Gabriel
"JP" <JP*********@yahoo.comwrote in message
news:ne********************@dada.knx.tva.gov...
>Hi Gabriel
The browser does accept cookies. I have confirmed this. It has Firt
Party cookies to Accept and Third Party cookies to accept
Thanks
"Gabriel Lozano-Morán" <ab***@frontbridge.comwrote in message
news:OQ****************@TK2MSFTNGP05.phx.gbl...
>>For more info see the last paragraph "Caching Role Information":
http://msdn2.microsoft.com/en-us/library/5k850zwb.aspx
Gabriel Lozano-Morán
"JP" <JP*********@yahoo.comwrote in message
news:ne********************@dada.knx.tva.gov.. .
Hi folks
I have the following settings for my Rolemanager
roleManager enabled="true" cacheRolesInCookie="true" cookieTimeout="30"
cookieSlidingExpiration="true" cookieName=".ASPXROLES"
My Expectation was that any hit to the database after the initial load
should be after 30 minutes for a session , however I have found that
this is not the case and every time I do Roles.IsUserInRole in the UI,
the database Stored Proc is being called.( I was running a trace)
Can anybody throw some light on this?