Can you share the session variables between two .net 2.0+ applications?

后端 未结 4 1237
醉梦人生
醉梦人生 2020-12-10 09:26

I was told this works, but...

I guess I\'m just not getting this, it seems there\'s a hidden step I may be missing, can anyone correct this or point out my mistake?

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 10:13

    They will share session data if they are in the same app pool and the session mode is set to inproc. The way that stateserver and sqlstate work is they use the root of your web address as logical boundaries.

    Eg if they are both hosted on the same address and port (or 'site' in iis) but in different sibfolders then they should share session I think.

提交回复
热议问题