Re: Role Providers Cache



What was the question you were trying to ask? It sounds like you know the
options pretty well.

If you are trying to avoid using session state (always a good idea in my
mind unless it is unavoidable), the cookie does sound like a good idea, but
it could be really big. You could create some sort of compression type of
thing where you have a big bitmap to represent the roles and then just store
the values in the cookie as the representative byte array of the roles. Of
course, then you'd need some code to read and write the cookie in order to
turn those back into friendly representations internally.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Tom" <Tom@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:82C8D131-8E7B-482C-A852-192B8E9DFD73@xxxxxxxxxxxxxxxx
If you do not cache role provider to Cookies with the
cacheRolesInCookie="True" in your role provider configuration, will it
default to cache to Session. We may have over 200 roles for some users
and
I am concerned about the size of the cookie but would like the role cached
if
posible. We will be writting our own role provider but would like to do
as
little as possible.

Thanks
Tom




.



Relevant Pages

  • Re: persistant cookie, what is it?
    ... Why don't you use Session State? ... cookie to identify the client. ... All you need to do to not persist a cookie is not to set ... client until the domain is navigated away from, or the browser is closed. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Programatically Login
    ... If it is view state or session state, then you can enter the information on ... If it is a cookie, then when you login you will have to capture the cookie ... can I do this using the HttpRequest and HttpResponse methods? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Cookie and Webpage Question
    ... I am assuming that what you mean by sticky sessions is ... use ASP.Net Session state InProc mode. ... cookie to be used throughout the application. ... Read the cookie when the page first loads ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Wont save session object
    ... URL: http://localhost/program.aspx it runs the session objects fine, ... Here is the session state object in my web.config file: ... > client machine's cookie setting. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Role Providers Cache
    ... The provider we need to write may be a short term once the Web site with ... Auth Manager Role Provider or use the SQL Role provider (moving the roles to ... So my main concern was on the cache feature and the cookie was worried we ...
    (microsoft.public.dotnet.framework.aspnet.security)