Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IS there any limit on the No of Roles a user can Have ? DNN 4.5.2IS there any limit on the No of Roles a user can Have ? DNN 4.5.2
Previous
 
Next
New Post
2/26/2009 7:52 AM
 

As an epilogue to this thread, I wrote a role compression handler similar to the one I described earlier in the thread.  I haven't fully tested it (and it may be partially uncompleted -- I don't recall offhand).  It got lost in the shuffle of more important projects, and I failed to even mention here that I had made progress on it.  I recall getting somewhere on the order of 500-750 roles per user.

While it's possible that there are issues with it (and it may be only partially completed), I'm happy to take a look at wrapping it up if there is still interest.

@Hollywood: I would not recommend rewriting the MembershipModule; as a design rule we generally discourage any modifications to the core code.  You can accomplish similar functionality, however, by creating your own HttpModule and executing it prior to the MembershipModule in the pipeline.  This would achieve the results you desire without any core code change (and in a much more straightforward manner).

Brandon

 

 


Brandon Haynes
BrandonHaynes.org
 
New Post
2/26/2009 8:17 PM
 

Thanks @Brandon (the world has gone Twitter mad!)

The upstream module sounds like a sensible suggestion - I'll just use it to fill the Request.Cookies("portalroles") parameter :) (plus the portaliasid one too)

Although I do know that really I should switch to a new table now as it'll be even more painful switching later....

Out of interest, is there a big security reason why the portalroles and portalaliasid both expire after only 1 minute? This seems pretty short?

Thanks

Stuart

 
New Post
3/17/2010 6:07 PM
 

DNN is so great at so many things that I'm surprised something so banal as 'a user in more than 40 groups' is an issue.  

It seems many of the responses in this thread center around the idea that Roles are being used incorrectly because we as developers were not aware of an esoteric shortcoming of the Role system. True, many sites will never come up against this limit.  The small sites I build for photographers will not.  The big social networks I build for large clients are.  Right now.  This issue is especially insidious because it doesn't pop up until your site has been live and in active use for a while.  By that time, rewriting a bunch of code to accommodate a unexpected shortcoming is an expensive option.

I realize you guys can think up several ways I can rewrite all my code after-the-fact but that is little comfort now.  As the saying goes, "Everything is easy for the person who doesn't have to do it."  I could write of several ways you might refactor the this piece of the Role system but I know better. 
 
The Role feature of the DNN CMS is one of the big selling points I make to clients and now I have to tell them we can only have 40 roles assigned to any user? Having a RoleGroups table seems to imply that there may be a lot of roles so categorizing them into groups will be necessary.  
 
The take-away from this:
  • Do not use Roles to manage group membership, only use them for general page/module security.
  • Keep Role names as short as possible.

Dave

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0IS there any limit on the No of Roles a user can Have ? DNN 4.5.2IS there any limit on the No of Roles a user can Have ? DNN 4.5.2


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out