Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 07, 2012 01:31 PM by BrockAllen
May 07, 2012 09:24 AM|LINK
I have 2 ASP.NET applications (i.e. WebApp1 and WebApp2).
Now in WebApp1 I create the session for the user (i.e. Session["user"] = "username") and read that session value in WebApp2 (string username = Convert.ToString(Session["user"]).
Now my question is will I able to read session value in WebApp2 for the below scenario?
1. I have hosted both the applications on same Application Pool on the same IIs server.
2. I have hosted both the applications on different Application Pool on the same IIS server.
3. I have hosted both the applications on different IIS server.
As per my understanding, I should able to read the session value in scenario 1 as Application Pool handle the InProc
session. But I am not able to read the session value in any of the above scenario.
If I use cookie, What will be your answer for all the above 3 scenarios?
Please help me by giving the answer of my above question.
Thanks for your help in advance.
May 07, 2012 09:28 AM|LINK
Answer to question is Out of Process - SQL Server!!!
More over, you can also check the below forum post!
Hope it helps u...
May 07, 2012 01:31 PM|LINK
Session is manager per-application (and really per-app domain). It doesn't matter if the two different app domains share the same app pool. The way to share the data across the apps is to use a database or write your own state server that allows sharing