1

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?

tereško
  • 58,060
  • 25
  • 98
  • 150
Nick
  • 5,844
  • 11
  • 52
  • 98
  • I didn't think I could do that until I got to 15 rep but just read the guide and you are right. Accepted! – Nick Jun 21 '11 at 08:40

2 Answers2

2

You could use a custom Profile Provider to achieve this. And here's a blog post which you might find useful as well.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
0

have a look on this..may be helpful for you http://www.asp.net/web-forms/tutorials/security/membership/storing-additional-user-information-cs

  • Note that [link-only answers are discouraged](http://meta.stackoverflow.com/tags/link-only-answers/info), SO answers should be the end-point of a search for a solution (vs. yet another stopover of references, which tend to get stale over time). Please consider adding a stand-alone synopsis here, keeping the link as a reference. – kleopatra Jan 21 '14 at 09:26