When a user logs on to my ASP.NET MVC application I need to persist what company that user belongs to. The company they belong to will determine what database ~all~ their queries come from so it is important for me to query for their company as soon as they log in and persist it so I don't have to perform this lookup again.
Where/How should I store this Company ID? Session? Some way to customize a MembershipProvider that would allow me to retain this information in a User object?
What would be the best way to handle this? Literally, every query I do after that will wildly depend on that company ID so it is important that I retain that information.