Recalculate role memberships per page load?

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.
4/11/2010 3:09:17 AM
Gravatar
Total Posts 13

Recalculate role memberships per page load?

This may be a general ASP.NET Forms Auth limitation, not sure:

When a user's role memberships change, the changes don't seem to take effect until the user's next login.

I've added self-service functionality that allows a registered user to grant themselves additional access to the site by way of an Invite Code (a 16 character crypto-hash).  The code is validated against some criteria, including a list of roles in mojoPortal - if the code matches, mojoPortal adds them to the role.

Problem is that the user has to log out and in again to see the new content.  No amount of refreshing will make it appear.

Is there any way to have mojoPortal re-generate their cookie?

Thanks!

4/11/2010 7:59:33 AM
Gravatar
Total Posts 18439

Re: Recalculate role memberships per page load?

Hi Jason,

I implemented a helper method this morning, it will be in svn trunk by tomorrow night.

You will be able to call 

mojoRoleProvider.ResetCurrentUserRolesCookie();

Hope it helps,

Joe

4/12/2010 12:56:19 AM
Gravatar
Total Posts 13

Re: Recalculate role memberships per page load?

Hi Joe,

That's great!  I took a look at the helper method in the source, but I'm not so hardcore as to be able to deploy this out-of-band myself.  How often do you release an upgrade?

Thanks,

Jason

4/13/2010 8:21:49 AM
Gravatar
Total Posts 18439

Re: Recalculate role memberships per page load?

Just released mojoPortal 2.3.4.2.

Best,

Joe

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