I have an ASP.Net 4.0 application, and inside it is a folder called "Forum", which is installed as an auxiliary application in IIS 7. This forum package implements a custom provider for .net network membership. The forum works in .net 3.5. I would like to set up the main site so that when I log in to the system, it will register them both on my site and on the forum site. Both the main site and the forum have separate .Net membership tables.
How can I specify which provider to use for forms authentication?
right now I have
FormsAuthentication.SetAuthCookie(...);
this, however, just uses my default provider and does nothing with the forum provider
I tried to configure the forum application and my web application to have the same cookie name, and also set the machine key every time:
<machineKey validationKey="AutoGenerate" validation="SHA1" />
no dice. I googled and didnt really come up with any example of how to use multiple providers as I want. I updated my web.config to have both providers, but it is useless if I cannot specify in my code which to use.
source share