Hi,
I'm using Forms authentication on my site for basic authentication and assignment of roles. However, I don't want to use the inbuilt UserProfiles functionality for storing user-site specific data, and have implemented my own 'SiteUserProfile' table(s) (integrated
into main site database) for this. The primary key SiteUserId has a one-to-one relationship with the Memberships.UserId. So that when a user registers, the assigned MembershipId becomes the SiteUserProfile Id.
1) Is this approach sound?
2) Where should I place the code that e.g. loads the UserProfile data. I was thinking:
if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password, persistCookie: model.RememberMe))
{
// Call method to populate session cookie with SiteUserProfile data here
return RedirectToLocal(returnUrl);
}
3) From what ...
Go to the complete details ...