On my site when a user logs I create a session object with the following properties
DisplayName,
Email,
MemberId
Questions
- Would it make more sense to use a custom profile provider for holding user data?
- What are the pro's and con's of each approach (Session and custom profile provider)?
- Does it make sense to use a custom provider for read only data that can come from one or more tables?
My answer is not direct approach to your question. It is just an alternative approach.
Instead of custom profile provider, I create custom Context to keep track of the current logged-in user's profile. Here is the sample code. You can store DisplayName, Email, MemberId stead of MyUser class.