Two different ASP.Net Membership providers on the same web-solution

戏子无情 提交于 2020-01-25 01:03:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!