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

后端 未结 3 509
不知归路
不知归路 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条回答
  •  Happy的楠姐
    2020-12-09 14:12

    Is your goal to share the session state between 2 applications, not just the session ID? I believe the StateServer also uses the application path as well as the SessionID to store the data so even if the SessionID's were the same you still wouldn't be able to share the data. You might have to write your own session module.

    Load balancing web apps don't have this problem because the application path is the same across cluster members.

提交回复
热议问题