title: Asp.net override Membership settings at runtime (asp.net mvc)
body: <p>I had an application that hooked onto 1 single database.</p>
  
  <p>The app now needs to hook into multiple databases.  What we want to do is, using the same application/domain/hostname/virtual dir give the user the option on the login screen to select the "App/Database" they want to connect into.</p>
  
  <p>Each database has the App tables/data/procs/etc as well as the aspnet membership/roles stuff.</p>
  
  <p>When the user enters the username/password and selects (select list) the application, I want to validate the user against the selected applications database.</p>
  
  <p>Presently the database connection string for membership services is saved in the web.config.  Is there any way I can override this at login time?
  Also, I need the "remember me" function to work smoothly as well.  How does this work when the user comes back to the app in 5 hours...  This process should be able to identify the user and application and log in appropriately.</p>