System.Web.SessionState.SessionStateStoreProviderBase.RemoveItem Method

Deletes item data from the session data store.

Syntax

public abstract void RemoveItem (System.Web.HttpContext context, string id, object lockId, SessionStateStoreData item)

Parameters

context
The System.Web.HttpContext for the current request.
id
The session identifier for the current request.
lockId
The lock identifier for the current request.
item
The System.Web.SessionState.SessionStateStoreData that represents the item to delete from the data store.

Remarks

The System.Web.SessionState.SessionStateModule object calls the SessionStateStoreProviderBase.RemoveItem(System.Web.HttpContext, string, object, SessionStateStoreData) method at the end of a request, during the System.Web.HttpApplication.ReleaseRequestState event, to delete the data for a session item from the session data store if the HttpSessionState.Abandon method has been called. Only session data for the current application that matches the supplied session id and lockId values is deleted. For more information about locking and details about the lock identifier, see "Locking Session-Store Data" in the System.Web.SessionState.SessionStateStoreProviderBase class overview.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0