使用InProc会话在同一应用程序池上运行的两个Web应用程序之间的会话共享

时间:2018-04-05 07:54:51

标签: c# asp.net-mvc inproc

我在IIS的同一个应用程序池中运行了两个MVC Web应用程序  Attached image of two applications which are InProcSessionState and L which runs under InProcSessionState application pool

我尝试使用 InProc 会话在两个应用程序之间共享数据,方法是在Web中添加它.Config

<sessionState mode = "InProc" timeout = "60">
</sessionState>

在应用程序1中,我已将用户名置于会话中并尝试从会话2中获取,但每次检索时都会获得Null。

可能导致此问题的原因是什么?

Storing username in session in Application 1

Retrieving data from the session in Application 2

0 个答案:

没有答案
相关问题