Posted on: 9/5/2012 3:18:46 AM | Views : 251

Hi,
 we are designing an application whereby each session (or request) could be to a different database. (its a multi-tenanted model with a seperate database per client).
I therefore need to intercept the request workout the connection string and somehow change the simplemembershipproviders connection. I have worked out the former but i am unable to change the membership providers connection i believe i need to modify the line below but i am presently unable to to so it appears to only be able to be called once per application start.
      WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);
           
Tim

...

Go to the complete details ...