System.Web.SessionState.SessionStateStoreProviderBase.ResetItemTimeout Method

Updates the expiration date and time of an item in the session data store.

Syntax

public abstract void ResetItemTimeout (System.Web.HttpContext context, string id)

Parameters

context
The System.Web.HttpContext for the current request.
id
The session identifier for the current request.

Remarks

The System.Web.SessionState.SessionStateModule object calls the SessionStateStoreProviderBase.ResetItemTimeout(System.Web.HttpContext, string) method to update the expiration date and time for a session to the current date and time plus the session HttpSessionState.Timeout value when either:

If an ASP.NET page is requested and the System.Web.Configuration.PagesSection.EnableSessionState attribute is set to false, the SessionStateStoreProviderBase.ResetItemTimeout(System.Web.HttpContext, string) method is still called to update the expiration date and time of the data in the session data store.

Requirements

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