473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Invalidate cache of AuthorizationStoreRoleProvider in ASP.NET 2.0 RoleManager

Hi all,

Is there a way to invalidate the cache of the
AuthorizationStoreRoleProvider rolemanager provider from ASP.NET 2.0?

We have a project where we adjust role settings via Authorization
Manager (Win2003) directly. We've disabled cookie-caching of roles in
the web.config of the ASP.NET website, but it seems that the provider
itself has a cache. Sometimes we can update the cache by calling a
related method (Roles.GetUsersInRole for example), but this will work
only once.

Our project uses:
- Active Directory for users
- Authorization Manager based on Active Directory
- Forms Authentication via ActiveDirectoryMembershipProvider
- Roles via AuthorizationStoreRoleProvider

We could ofcourse call the AzMan API (AccessCheck) instead of
Roles.IsInRole(), but we also want to use the built-in
role-authorization capabilities of ASP.NET 2.0. That's why it's
important to keep using Roles via .NET.

We could ofcourse adjust the AzMan only via
AuthorizationStoreRoleProvider, but this excludes any other applications
to adjust the user-data, like the AzMan.msc.

Any help would be greatly appreciated!

Wim Verbeke

*** Sent via Developersdex http://www.developersdex.com ***
Jan 18 '06 #1
0 1197

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: gargarensis | last post by:
I am using invalidate method from the httpSesion class , but when I press the back button in the internet navigator, the session still is valid.
0
by: 1.1 SDK installed after the removal | last post by:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <authentication mode="Forms" /> <roleManager enabled="false" /> <!-- <roleManager enabled="true" /> --> <!-- BSam 06/06/2005...
0
by: ~~~ .NET Ed ~~~ | last post by:
It is not the first time I have had to fight with ASP.NET stubborness. Maybe this time it does what I need it to do. My asp.net application uses a couple of custom web controls, each controls has...
0
by: nicolasl | last post by:
Hello, I have built a custom roleManager Provider that I have turned into a dll so I can share it accross multiple applications. When I try to add it to a web.config file I get the following...
0
by: the4man | last post by:
Hi all! I'm developing a website that uses the cacheoutput directive in some pages and even in some ascx controls. I want to add a link for invalidate all caches in the web site at once. The...
4
by: grayaii | last post by:
Hi, I have a simple form that handles all its paint functionality like so: this.SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.Opaque, true); And the entry point to this...
7
by: JP | last post by:
Hi folks I have the following settings for my Rolemanager roleManager enabled="true" cacheRolesInCookie="true" cookieTimeout="30" cookieSlidingExpiration="true" cookieName=".ASPXROLES" My...
0
by: J | last post by:
<roleManager enabled="true" defaultProvider="CustomProvider" cacheRolesInCookie="true" cookieName=".MOSSROLES" cookieTimeout="30" cookiePath="/" cookieRequireSSL="false"...
4
by: Khafancoder | last post by:
Hi guys, i keep many items in cache such as onlineusers and ... recently i build a page which create tempfolders in webapplication root dir but i findout that it invalidate cache and i hadn't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.