ComponentSpace

Forums



Question about DatabaseSSOSessionStore


Question about DatabaseSSOSessionStore

Author
Message
Jbrunken
Jbrunken
New Member
New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)New Member (20 reputation)

Group: Forum Members
Posts: 9, Visits: 39
When using DatabaseSSOSessionStore, how is the session information bound to a user?

Is it done with a cookie similar to the normal session or is it up to the developer to come up with their own scheme to associate the session with the user.

This documentation isn't super clear on this point.

Thanks!

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
It's up to the developer to use whatever mechanism suits the application.
The ISSOSessionStore interface includes a SessionID property that must return a unique identifier associated with the browser session.
The DatabaseSSOSessionStore implements this property by using the ASP.NET session ID (ie associated with the ASP.NET cookie, assuming there is one).
If there is no ASP.NET cookie then you can provide your own implementation of the SessionID property using a custom cookie or any other mechanism.

Regards
ComponentSpace Development
Chaitanya
Chaitanya
New Member
New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)New Member (1 reputation)

Group: Forum Members
Posts: 1, Visits: 5
We have used DatabaseSSOSessionStore to store sessions in SSOSessions Table as we have web farm scenario. But the session data is not getting inserted in SSOSessions Table.
We used the following code
SAMLConfiguration.SSOSessionStore =  new DatabaseSSOSessionStore(ConfigurationManager.ConnectionStrings["SAMLConString"].ConnectionString, "SSOSessions");
We tried to use Save method like sessionStore.Save(sessionStore); but the data is not getting saved.

Let us know if there is anything we are missing. If possible could you share any sample code.

Thank you.


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
There isn't really any code other than setting the SAMLConfiguration.SSOSessionStore property as you've done. The rest is configuration including creating the database and table as described in the Developer Guide.
Are you seeing anything stored in the database table?
Are exceptions being thrown?
Could you please enable SAML trace and send the generated log file as an email attachment to [email protected] mentioning this post?
http://www.componentspace.com/Forums/17/Enabing-SAML-Trace

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