Class AbstractDatabaseSSOSessionStore
The abstract database single sign-on session store provides common functionality for storing single sign-on session state in a database.
Inheritance
Implements
Inherited Members
Namespace: ComponentSpace.SAML2.Data
Assembly: ComponentSpace.Saml2.dll
Syntax
public abstract class AbstractDatabaseSSOSessionStore : AbstractSSOSessionStore, ISSOSessionStore
Constructors
AbstractDatabaseSSOSessionStore()
Constructs a AbstractDatabaseSSOSessionStore
.
The default database connection string name is assumed to be configured in web.config.
Declaration
public AbstractDatabaseSSOSessionStore()
AbstractDatabaseSSOSessionStore(String)
Constructs a AbstractDatabaseSSOSessionStore
.
Declaration
public AbstractDatabaseSSOSessionStore(string connectionStringName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName | The database connection string name configured in web.config. |
AbstractDatabaseSSOSessionStore(String, String)
Constructs a AbstractDatabaseSSOSessionStore
.
Declaration
public AbstractDatabaseSSOSessionStore(string connectionStringName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionStringName | The database connection string name configured in web.config. |
System.String | tableName | The database table name or |
AbstractDatabaseSSOSessionStore(String, String, String)
Constructs a AbstractDatabaseSSOSessionStore
.
Declaration
public AbstractDatabaseSSOSessionStore(string providerName, string connectionString, string tableName)
Parameters
Type | Name | Description |
---|---|---|
System.String | providerName | The database provider name. |
System.String | connectionString | The database connection string. |
System.String | tableName | The database table name or |
Properties
SessionIDColumnName
Gets or sets the name of the session ID column. The default name is SessionID.
Declaration
public string SessionIDColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the session ID column. |
SessionObjectColumnName
Gets or sets the name of the session object column. The default name is SessionObject.
Declaration
public string SessionObjectColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the session object column. |
UpdateDateTimeColumnName
Gets or sets the name of the update date/time column. The default name is UpdateDateTime.
Declaration
public string UpdateDateTimeColumnName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the update date/time column. |
Methods
Delete(String)
Deletes any SSO session objects for the specified session from the database.
Declaration
public int Delete(string sessionID)
Parameters
Type | Name | Description |
---|---|---|
System.String | sessionID | The session ID. |
Returns
Type | Description |
---|---|
System.Int32 | The number of SSO session objects deleted from the database. |
Delete(Type)
Deletes the SSO session object.
Declaration
public override void Delete(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The SSO session object type. |
Overrides
DeleteExpired(DateTime)
Deletes any expired SSO session objects from the database.
Declaration
public int DeleteExpired(DateTime expirationDateTime)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | expirationDateTime | The expiration UTC date/time. |
Returns
Type | Description |
---|---|
System.Int32 | The number of expired SSO session objects deleted from the database. |
Load(Type)
Loads the SSO session object.
Declaration
public override object Load(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The SSO session object type. |
Returns
Type | Description |
---|---|
System.Object | The SSO session object or |
Overrides
Save(Object)
Saves the SSO session object.
Declaration
public override void Save(object ssoSession)
Parameters
Type | Name | Description |
---|---|---|
System.Object | ssoSession | The serializable SSO session object. |