问题
I have built two websites, both of them use a custom membership provider I have written myself.
One of these sites is already a long time online and runs fine. Now I have installed the other site on the same webserver in the same Web as a different application. Also have I given a seperate ApplicationPool for each solution.
If now the client logs on to one site, he looses the session on the other and vice versa. It's not possible to be loged on on both sites together. All the rest works fine.
What is the connection between the two sites. Is it necessary to change something in my membership providers?
回答1:
Maybe if you change the session cookie name for each application:
http://msdn.microsoft.com/en-us/library/h6bb9cz9
Update: Right answer was to change the form name. See comments below.
来源:https://stackoverflow.com/questions/4711523/two-different-asp-net-membership-providers-on-the-same-web-solution