Class DatabaseSSOSessionStore
The single sign-on session store stores single sign-on session state in a database.
Implements
Inherited Members
Namespace: ComponentSpace.SAML2.Data
Assembly: ComponentSpace.Saml2.dll
Syntax
public class DatabaseSSOSessionStore : AbstractSSOSessionStore, ISSOSessionStore
Constructors
DatabaseSSOSessionStore()
Constructs a DatabaseSSOSessionStore
.
The default database connection string name is assumed to be configured in web.config.
Declaration
public DatabaseSSOSessionStore()
DatabaseSSOSessionStore(String)
Constructs a DatabaseSSOSessionStore
.
Declaration
public DatabaseSSOSessionStore(string connectionStringName)
Parameters
Type | Name | Description |
---|---|---|
System. |
connectionStringName | The database connection string name configured in web.config. |
DatabaseSSOSessionStore(String, String)
Constructs a DatabaseSSOSessionStore
.
Declaration
public DatabaseSSOSessionStore(string connectionStringName, string tableName)
Parameters
Type | Name | Description |
---|---|---|
System. |
connectionStringName | The database connection string name configured in web.config. |
System. |
tableName | The database table name or |
DatabaseSSOSessionStore(String, String, String)
Constructs a DatabaseSSOSessionStore
.
Declaration
public DatabaseSSOSessionStore(string providerName, string connectionString, string tableName)
Parameters
Type | Name | Description |
---|---|---|
System. |
providerName | The database provider name. |
System. |
connectionString | The database connection string. |
System. |
tableName | The database table name or |
Properties
DeleteExpiredPriorToAdd
Gets or sets the flag indicating whether expired entries should be deleted prior to saving an entry. The default is true.
Declaration
public bool DeleteExpiredPriorToAdd { get; set; }
Property Value
Type | Description |
---|---|
System. |
The flag indicating whether expired entries should be deleted prior to saving an entry. |
ExpirationDateTimeColumnName
Gets or sets the name of the expiration date/time column. The default name is ExpirationDateTime.
Declaration
public string ExpirationDateTimeColumnName { get; set; }
Property Value
Type | Description |
---|---|
System. |
The name of the expiration date/time column. |
ExpirationTimeSpan
Gets or sets the session state expiration timespan. The default expiration period is one hour.
Declaration
public TimeSpan ExpirationTimeSpan { get; set; }
Property Value
Type | Description |
---|---|
System. |
The session state expiration timespan. |
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. |
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. |
The name of the session object column. |
Methods
Delete(Type)
Deletes the SSO session object.
Declaration
public override void Delete(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The SSO session object type. |
Overrides
DeleteExpired()
Deletes any expired SSO session objects from the database.
Declaration
public virtual int DeleteExpired()
Returns
Type | Description |
---|---|
System. |
The number of expired SSO session objects deleted from the database. |
Dispose()
Dispose of the database ID cache.
Declaration
public void Dispose()
Dispose(Boolean)
Dispose of the database SSO session store.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
|
Load(Type)
Loads the SSO session object.
Declaration
public override object Load(Type type)
Parameters
Type | Name | Description |
---|---|---|
System. |
type | The SSO session object type. |
Returns
Type | Description |
---|---|
System. |
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. |
ssoSession | The serializable SSO session object. |
Overrides
StartDeletingExpired(TimeSpan, TimeSpan)
Schedules the deletion of expired SSO session objects starting at the due time and repeating periodically.
Declaration
public virtual void StartDeletingExpired(TimeSpan dueTime, TimeSpan period)
Parameters
Type | Name | Description |
---|---|---|
System. |
dueTime | The due time to start deleting expired SSO session objects. |
System. |
period | The period to wait before next deleting expired SSO session objects. |
StopDeletingExpired()
Stops any scheduled deletion of expired SSO session objects.
Declaration
public virtual void StopDeletingExpired()