Re: Need to create in-memory store for authorization roles
From: bruce barker (nospam_brubar_at_safeco.com)
Date: 08/12/04
- Next message: Stan Sainte-Rose: "Re: Dynamic Table Question"
- Previous message: bruce barker: "Re: Serialization in asp.net"
- In reply to: Bill Borg: "Need to create in-memory store for authorization roles"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 12 Aug 2004 09:16:54 -0700
you can cache them in the application object are just create a static
hashtable. you will need to sync access.
-- bruce (sqlwork.com)
"Bill Borg" <BillBorg@discussions.microsoft.com> wrote in message
news:523F2D23-2F1E-4F3D-9A92-A83649B0271E@microsoft.com...
> Hello,
>
> I want to build user roles during AuthenticateRequest for use during
> authorization. I know I can go get the roles from the database and add
them
> to the principal, but would like to cache the roles in memory rather than
> always go to the database. I'd like to use the equivalent of the session,
but
> know that at the point where I need this the session state bag is not yet
> reestablished.
>
> Any thoughts on how best to create an in-memory store for user roles?
>
> Thanks,
>
> Bill Borg
- Next message: Stan Sainte-Rose: "Re: Dynamic Table Question"
- Previous message: bruce barker: "Re: Serialization in asp.net"
- In reply to: Bill Borg: "Need to create in-memory store for authorization roles"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|