Share via


DefaultSessionStateProvider Class

 

Provides a default implementation of SessionStateProvider using EntityFramework.

Namespace:   System.Web.Providers
Assembly:  System.Web.Providers (in System.Web.Providers.dll)

Inheritance Hierarchy

System.Object
  System.Configuration.Provider.ProviderBase
    System.Web.SessionState.SessionStateStoreProviderBase
      System.Web.Providers.DefaultSessionStateProvider

Syntax

public class DefaultSessionStateProvider : SessionStateStoreProviderBase
public ref class DefaultSessionStateProvider : SessionStateStoreProviderBase
type DefaultSessionStateProvider = 
    class
        inherit SessionStateStoreProviderBase
    end
Public Class DefaultSessionStateProvider
    Inherits SessionStateStoreProviderBase

Constructors

Name Description
System_CAPS_pubmethod DefaultSessionStateProvider()

Initializes a new instance of the DefaultSessionStateProvider class.

Properties

Name Description
System_CAPS_pubproperty Description

(Inherited from ProviderBase.)

System_CAPS_pubproperty Name

(Inherited from ProviderBase.)

Methods

Name Description
System_CAPS_pubmethod CreateNewStoreData(HttpContext, Int32)

Creates a new SessionStateStoreData object.(Overrides SessionStateStoreProviderBase.CreateNewStoreData(HttpContext, Int32).)

System_CAPS_pubmethod CreateUninitializedItem(HttpContext, String, Int32)

Creates an uninitialized session item.(Overrides SessionStateStoreProviderBase.CreateUninitializedItem(HttpContext, String, Int32).)

System_CAPS_pubmethod Dispose()

Releases the resources used by the current instance of the DefaultSessionStateProvider class.(Overrides SessionStateStoreProviderBase.Dispose().)

System_CAPS_pubmethod EndRequest(HttpContext)

Called on end request and registers a task which purges expired sessions.(Overrides SessionStateStoreProviderBase.EndRequest(HttpContext).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetItem(HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions)

Gets a session item.(Overrides SessionStateStoreProviderBase.GetItem(HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions).)

System_CAPS_pubmethod GetItemExclusive(HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions)

Gets a session and lock it.(Overrides SessionStateStoreProviderBase.GetItemExclusive(HttpContext, String, Boolean, TimeSpan, Object, SessionStateActions).)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Initialize(String, NameValueCollection)

Initializes the provider from specified configuration.(Overrides ProviderBase.Initialize(String, NameValueCollection).)

System_CAPS_pubmethod InitializeRequest(HttpContext)

Initializes the request hook.(Overrides SessionStateStoreProviderBase.InitializeRequest(HttpContext).)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ReleaseItemExclusive(HttpContext, String, Object)

Releases a locked session item.(Overrides SessionStateStoreProviderBase.ReleaseItemExclusive(HttpContext, String, Object).)

System_CAPS_pubmethod RemoveItem(HttpContext, String, Object, SessionStateStoreData)

Removes a session item.(Overrides SessionStateStoreProviderBase.RemoveItem(HttpContext, String, Object, SessionStateStoreData).)

System_CAPS_pubmethod ResetItemTimeout(HttpContext, String)

Refreshes a session item timeout.(Overrides SessionStateStoreProviderBase.ResetItemTimeout(HttpContext, String).)

System_CAPS_pubmethod SetAndReleaseItemExclusive(HttpContext, String, SessionStateStoreData, Object, Boolean)

Stores a session item and release the lock.(Overrides SessionStateStoreProviderBase.SetAndReleaseItemExclusive(HttpContext, String, SessionStateStoreData, Object, Boolean).)

System_CAPS_pubmethod SetItemExpireCallback(SessionStateItemExpireCallback)

Sets an expire callback for the item. Currently always returns false. (Overrides SessionStateStoreProviderBase.SetItemExpireCallback(SessionStateItemExpireCallback).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Providers Namespace
ASP.NET Identity

Return to top