How to handle SessionId through out the application?

Hi Team,

We are using SSO in application. We are able to store sessionid in SSOSessions table by using below code
SAMLController.SSOSessionStore = new ComponentSpace.SAML2.Data.DatabaseSSOSessionStore();
if (!ComponentSpace.SAML2.SAMLServiceProvider.IsSSO(WebConfigurationManager.AppSettings[“partnerIdP”].ToString()))
ComponentSpace.SAML2.SAMLServiceProvider.InitiateSSO(Response, null, WebConfigurationManager.AppSettings[“partnerIdP”].ToString());

Here our question is: Do we need to handle this sessionid on each page throughout application. I just want to know what is the purpose of this sessionid. I am able to save the sessionid and delete when logout from SSOSessions table.

Please let us know purpose of this sessionid and how to handle this sessionid in my application

The SessionID uniquely identifies a SAML session and is used to retrieve the session data.
By default it’s value is retrieved from the SAML session cookie.
You shouldn’t have to handle the SessionID directly.
The DatabaseSSOSessionStore class includes a DeleteExpired method that removes any expired SSO session data from the table.
This method should be called periodically to maintain the table. Alternatively, the Delete method may be called to delete specific SSO session data from the table.
There is also the option to maintain this table independently as part of general database maintenance.