473,396 Members | 2,018 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,396 software developers and data experts.

RoleManager, Role Provider and Caching of Roles.

J
<roleManager enabled="true" defaultProvider="CustomProvider"
cacheRolesInCookie="true"
cookieName=".MOSSROLES" cookieTimeout="30" cookiePath="/"
cookieRequireSSL="false"
cookieSlidingExpiration="true" createPersistentCookie="false"
cookieProtection="All">
<providers>
<add name="CustomProvider" applicationName="/"
type="CustomProvider.CustomProvider, CustomProvider, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=a456f6d308976des" />
</providers>
</roleManager>
Who implements the functionality for the cacheRolesInCookie attribute?
Does the RoleManager take care of it? Or should the RoleProvider
implement it?

I have a .NET app that runs off this custom Role Provider. However, it
does not seem to respect the "cacheRolesInCookie" attribute. When I
login to the app, it does not create a cookie and wants to reference
the "GetAllRolesForUser" function for every page request. Should the
GetAllRolesForUser function create the cookie?

Thanks!

May 1 '07 #1
0 988

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

Similar topics

1
by: Hennie | last post by:
Ho can I get the role of the user in a ASP.net 2.0 web application? I am using AspNetSqlProvider to manage my membership. I can get the user by using User.Identity.Name. What will the command be to...
0
by: Weaver | last post by:
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...
1
by: Bevo | last post by:
I'd like to take advantage of the role management classes in 2.0 to allow my users to give other users access to their data. For this reason I'd like to create new roles on-the-fly without having...
1
by: Joel Reinford | last post by:
I am trying to build custom membership/role providers, inheriting from the base membership/role providers because I have an existing database with user authentication and roles. The membership part...
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...
6
by: perplexed | last post by:
I'm familiar with membership/roles in ASP.NET 2.0. Rather than the more common directory restriction, I need page part restrictions. There are certain parts of my webpages that I need visible if...
7
by: Tom Van den Brandt | last post by:
Hi all! I'm trying to implement a custom roleprovider in asp.net. The new roleprovider works fine when I access it programmaticaly. However, it doesn't seem to work with the standard controls....
1
by: Derrick | last post by:
Morning, I am using the built in asp.net role/user/membership, etc. Have that all working. We have some internal users, and a bunch of external users. Is there any way to remove roles at...
4
by: alexandis | last post by:
There are tons of articles about custom role and provider membership, but they just tear me apart and confuse :( The situation is following: I use DB2, so I wrote custom role + membership...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.