I am learning how to use a profile that comes with .NET membership and role. However, I'm not sure where the top of the chain is to set the value:
//Q1. Does it mean I set auth manually when loading user, or create it if not already exists? //Or am I meant to get the isauth value from somewhere and pass it in? var currentUserProfile = ProfileBase.Create(Membership.GetUser().UserName, isauth); var anyUserProfile = ProfileBase.Create(strNewUser, isauth); //isauth: true to indicate the user is authenticated; // false to indicate the user is anonymous.
And to get the value:
I am confused about the auth / anonymous relationship in each of them. Which one is the right way to get / establish that the user should be authenticated or anonymous? My goal here is to enable anonymous users and authenticated users to have a profile.
source share