Refreshing a user's cache

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/3/2010 11:43:00 PM
Gravatar
Total Posts 8

Refreshing a user's cache

Joe,

Is there a method for refreshing the user's cache?  I have an application where a user fills out a form and is then placed in a new role.  In this new role he/she has access to new menus.  I would like to have the menus show up right after I add the user to the role.  Is this possible?

Thanks,

Bruce Browning

9/4/2010 6:49:18 AM
Gravatar
Total Posts 18439

Re: Refreshing a user's cache

Hi,

If you add a user to a role, then the user will not see that normally until they logout and login again because that is when the role cookie gets set.

But you can reset the cookie manually for the current user like this after you add them to the role:

mojoRoleProvider.ResetCurrentUserRolesCookie();

Hope it helps,

Joe

9/4/2010 9:20:02 AM
Gravatar
Total Posts 8

Re: Refreshing a user's cache

Joe,

That works perfectly.  Thanks so much.

Bruce Browning

You must sign in to post in the forums. This thread is closed to new posts.