Using the same membership provider for more than 1 web application

  • Thread starter Thread starter Andy B
  • Start date Start date
A

Andy B

I have a database with asp.net membership inside it. How would I use it for
2 or more web applications at the same time?
 
If you want to have them use the same database, but not use the same users,
take a look at the application features of the membership db. this let's you
create individual application areas for membership. Every user that
registers has an application id associated with their username which defines
the cope. In the membership provider settings in the web.config file you
specify the application name to validate against. this lets you use the same
exact provider and database in multiple web sites and only change the
application name in the provider.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
 
Kind of. I need to have 2 membership providers: 1 for the admin and main
website (already created) and 1 for contractServer membership (the
customers). The provider for the admin gets pulled from 1 database and the
customers for ContractServer get pulled from another one. How do you do
something like this?
 
Back
Top