Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • J 351 posts 606 karma points
    Jul 19, 2019 @ 09:47
    J
    0

    Admin logged in user and Membership user

    Im using the Membership section within Umbraco and creating a user programatically. This works (as far as i can tell).

    Once the Member user is created i am using the below code to retrieve the logged in users data:

    System.Web.Security.MembershipUser user = System.Web.Security.Membership.GetUser();
    

    I can see the data in code behind when i debug.

    The issue im having is when i log into the Umbraco admin section with my admin account (which has nothing to do with the Membership user) the Membership user i logged on with at the frontend is now null when i use the above code?

    So log in with Membership user - The above code returns a Membership user. Login into the Umbraco admin - Membership user is now null, until i log back in as a Membership user.

    Anyone know how to overcome this issue? Or where im going wrong/ how to narrow this down?

  • 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.

Please Sign in or register to post replies