Using the same membership provider for more than 1 web application

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?
 
M

Mark Fitzpatrick

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
 
A

Andy B

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top