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.0Roles clear cache seems to have stopped working Roles clear cache seems to have stopped working
Previous
 
Next
New Post
9/3/2007 12:10 AM
 

ARGH - so the following user role cache clear code seems to have stopped working.

ANYONE GOT ANY IDEAS AT ALL -
'Force a flush of the user controller
DataCache.RemoveCache(UserController.SettingsKey(UserPortalID))
'Clear Roles Cache
DataCache.RemoveCache("GetRoles")
'Clear Role Cookies
Response.Cookies("portalroles").Value = Nothing
Response.Cookies("portalroles").Path = "/"
Response.Cookies("portalroles").Expires = DateTime.Now.AddYears(-30)

Then do a redirect

Response.Redirect(NavigateURL(someTabId))

Westa

Westa

 
New Post
9/3/2007 8:47 PM
 

ANyone got any thoughts on this ???

Westa

 
New Post
9/5/2007 4:15 PM
 

FYI.  I searched for a way to clear the user role cache (after i added a new role on the fly programatically),  and found the above code in another post by you.  It works perfectly on my development laptop, though when i move to my development server the code (same code) no longer clears the users cache, hence i get a "You don't have permission...." when redirecting to the page i want.   I'm searching everywhere for a solution to this.  Could there be a server setting / dnn setting somewhere allowing this?  Please post if anyone has ideas on this...Thanks.

 
New Post
9/5/2007 8:18 PM
 

Tell me about it my LIVE sites were working fine and all of a sudden they are now.

- this code originally grew out of a collection of posts from charles nurse and others ...

Any of the others care to comment on this.

It really is a minimum requirement to be able to change roles on the fly.
Why does it need to be so difficult.

Westa

 
New Post
10/2/2007 7:12 PM
 

I just re-visted this issue, seeing it was the last bug on list, i needed to find a solution.  Again the same results,  on my laptop the above code worked.  Move it (whole dnn instance this time) to my office development server.  Stops working.  Maybe having Visual Studio installed on my laptop, who knows.  

Anyway played with a few things, it seems that placeing the code in my page load (before anything is even done) fixes it on my office server.  I've been testing off and on all day in it seems solid.  Now that i think of it i didnt "remove" the code after the role addition.  So maybe a combination of the 2.  Wanted to let you know, maybe you will have the same results.

Jason

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Roles clear cache seems to have stopped working Roles clear cache seems to have stopped working


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