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?
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:
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?
is working on a reply...