Session Sharing between two web applications running on the same application pool using InProc Session

497 Views Asked by At

I have two MVC web application running in the same application pool of IIS Attached image of two applications which are InProcSessionState and L which runs under InProcSessionState application pool

I have tried using InProc session to share data between two applications by adding this in Web.Config

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

In application 1, I have put the username in session and tried to fetch from session 2, but every time I am getting Null while retrieving.

What could be causing this issue ?

Storing username in session in Application 1

Retrieving data from the session in Application 2

0

There are 0 best solutions below