How to maintain the same session id across multiple web applications in ASP.NET

后端 未结 3 505
不知归路
不知归路 2020-12-09 13:36

I have two identical applications setup on IIS on different virtual directories (I have done some workaround to ensure that they both have the same application name). Is the

3条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-09 14:31

    Initially i faced the same issue. What I did is, I overide the jsession id from each domain. I mean, If the user lands on domain1.com, set the same session id for domain2.com from iframe. and vice versa. With this, you can maintain same session across multiple domains.

    You need to test the impact over multiple server over network with load balancer.

提交回复
热议问题