Subject: Share session value between two application
Date: 2018-01-18 18:47:48
From: Jaimin Solanki
Source: share-session-value-two-application

I want to implement SSO funtionality for my multiple applications with ADFS cradential.

Identity provider project is implement as mvc project and Service provider project is implement as simple web form application(not mvc).

I am trying to share sessions between two web applications, both hosted on the same server.

My requirement is once user is authenticated by identity provider directly login into the all service provider without asking login for service provider and getting user identity  using System.Web.HttpContext.Current.Session["UserIdentity"]), 

I have successfully done user authentication by identity provider with adfs credential(adfs user identity stored in System.Web.HttpContext.Current.Session["UserIdentity"]),
Now i am stuck at The UserIdentity is being posted but the session does not seem to get loaded in the Service Provider project(implemented as simple web form application), i.e. System.Web.HttpContext.Current.Session["UserIdentity"]) is null. Can what I am trying to do be done?

Both apps have their session set up like this:

Whenever i have set sessionState in Idp web.config file then gettting below error.
![Unable to serialize the session state][1]

so, please guide how to share session between two web applications.


Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand
If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor
who sold you the license and ask for your money back.

Back to ComponentPro Q&A Forum Index