Re: Custom RoleProvider question -- saving roles



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



.



Relevant Pages

  • FormsAuthentication Cookie
    ... Assuming that the local m/c does not have the cookie named ... When a user tries to navigate to Products.aspx without logging in, ... But when the user closes this window, opens a new browser window & ...
    (microsoft.public.dotnet.framework.aspnet)
  • PHP question
    ... I have this problem and need ur help or advice if possible: ... The hosting company does not let me do symbolic link, so I had to create a ... But cookie only works in Mozilla and Netscape, ... because browser window has kurt.mysurplusstore.com ...
    (alt.php)
  • Re: ugh, ie6 wont remember my login settings
    ... says automatically login me in everytime but when I leave and go back to ... places like myspace until I closed the browser window. ... I updated ie6. ... This sounds like it's a cookie handling issue - normally when you have these ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: [PHP] php sessions
    ... > This is entirely up to the client, deciding to send a cookie or not ... > when opening a new browser window. ... All the php script knows is that you simply ... > don't have a cookie. ...
    (php.general)
  • Re: Forms authentication cookies not expiring...
    ... Aren't the cookie supposed to expire when the browser is closed? ... how do I expire those cookies when the browser window is closed? ... >> public void WriteAuthCookie() ...
    (microsoft.public.dotnet.framework.aspnet)