ComponentSpace

Forums



How to handle SessionId through out the application?


How to handle SessionId through out the application?

Author
Message
AlnUser
AlnUser
New Member
New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)New Member (3 reputation)

Group: Forum Members
Posts: 1, Visits: 3
Hi Team,

We are using SSO in ASP.net 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
ComponentSpace
ComponentSpace
ComponentSpace Development
ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)ComponentSpace Development (4.4K reputation)

Group: Administrators
Posts: 3.2K, Visits: 11K
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.



Regards
ComponentSpace Development
GO


Similar Topics


Execution: 0.000. 2 queries. Compression Enabled.
Login
Existing Account
Email Address:


Password:


Select a Forum....












Forums, Documentation & Knowledge Base - ComponentSpace


Search