Click or drag to resize

MySqlSessionStateStore Class

This class allows ASP.NET applications to store and manage session state information in a MySQL database. Expired session data is periodically deleted from the database.
Inheritance Hierarchy

Namespace:  MySql.Web.SessionState
Assembly:  MySql.Web (in MySql.Web.dll) Version: 8.0.22
public class MySqlSessionStateStore : SessionStateStoreProviderBase

The MySqlSessionStateStore type exposes the following members.

Public methodMySqlSessionStateStore
Initializes a new instance of the MySqlSessionStateStore class
Public propertyApplicationName
The name of the ASP .NET application.
Public propertyDescription
Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).
(Inherited from ProviderBase.)
Public propertyEnableExpireCallback
Indicates whether if expire callback is on or off.
Public propertyName
Gets the friendly name used to refer to the provider during configuration.
(Inherited from ProviderBase.)
Public propertyWriteExceptionsToEventLog
Indicates whether to write exceptions to event log.
Public methodCreateNewStoreData
Creates a new SessionStateStoreData object for the current request.
(Overrides SessionStateStoreProviderBaseCreateNewStoreData(HttpContext, Int32).)
Public methodCreateUninitializedItem
Adds a new session state item to the database.
(Overrides SessionStateStoreProviderBaseCreateUninitializedItem(HttpContext, String, Int32).)
Public methodDispose
Releases all the resources for this instance.
(Overrides SessionStateStoreProviderBaseDispose.)
Public methodEndRequest
Allows the MySqlSessionStateStore object to perform any cleanup that may be required for the current request.
(Overrides SessionStateStoreProviderBaseEndRequest(HttpContext).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetItem
Returns a read-only session item from the database.
(Overrides SessionStateStoreProviderBaseGetItem(HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions).)
Public methodGetItemExclusive
Locks a session item and returns it from the database.
(Overrides SessionStateStoreProviderBaseGetItemExclusive(HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initializes the provider with the property values specified in the ASP .NET application configuration file.
(Overrides ProviderBaseInitialize(String, NameValueCollection).)
Public methodInitializeRequest
Performs any per-request initializations that the MySqlSessionStateStore provider requires.
(Overrides SessionStateStoreProviderBaseInitializeRequest(HttpContext).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReleaseItemExclusive
Forcibly releases the lock on a session item in the database if multiple attempts to retrieve the session item fail.
(Overrides SessionStateStoreProviderBaseReleaseItemExclusive(HttpContext, String, Object).)
Public methodRemoveItem
Removes the specified session item from the database
(Overrides SessionStateStoreProviderBaseRemoveItem(HttpContext, String, Object, SessionStateStoreData).)
Public methodResetItemTimeout
Resets the expiration date and timeout for a session item in the database.
(Overrides SessionStateStoreProviderBaseResetItemTimeout(HttpContext, String).)
Public methodSetAndReleaseItemExclusive
Updates the session time information in the database with the specified session item, and releases the lock.
(Overrides SessionStateStoreProviderBaseSetAndReleaseItemExclusive(HttpContext, String, SessionStateStoreData, Object, Boolean).)
Public methodSetItemExpireCallback
Sets the reference for the ExpireCallback delegate if setting is enabled.
(Overrides SessionStateStoreProviderBaseSetItemExpireCallback(SessionStateItemExpireCallback).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also