Custom login control and custom menu control with protected pages
Hi All,
I have a custom login control and a custom menu control. In the Login control ButtonLoginClick event I login the visitor with
Member
.AddMemberToCache(m);
After that, I loop through all the pages to see where this user has access to, to show in my custom menu. But unfortunately, umbraco.cms.businesslogic.web.Access.HasAccess is not working at this moment, because
Membership
.GetUser();
will return null. When I refresh the page, all works fine.
Custom login control and custom menu control with protected pages
Hi All,
I have a custom login control and a custom menu control. In the Login control ButtonLoginClick event I login the visitor with
Member
.AddMemberToCache(m);
After that, I loop through all the pages to see where this user has access to, to show in my custom menu. But unfortunately, umbraco.cms.businesslogic.web.Access.HasAccess is not working at this moment, because
Membership
.GetUser();
will return null. When I refresh the page, all works fine.
Does anybody has a clue to solve this problem?
After logging in, redirect to the same page to allow the cookies to be set properly.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.