Reputation: 5892
I have created my own MembershipProvider for my ASP.NET MVC 3 application and have it working great.
Once logged in, I can call the logged in user's username by requesting System.Web.HttpContext.Current.User.Identity.Name
.
I'd like to store some additional information about the user here which needs to be reused throughout the application.
Could anybody help me out with identifying the best way to do this, possibly with some examples?
Upvotes: 1
Views: 2019
Reputation: 36
have a look on this..may be helpful for you http://www.asp.net/web-forms/tutorials/security/membership/storing-additional-user-information-cs
Upvotes: 0
Reputation: 1039508
You could use a custom Profile Provider to achieve this. And here's a blog post which you might find useful as well.
Upvotes: 2