Export (0) Print
Expand All

SessionStateStoreProviderBase.ResetItemTimeout Method

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

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

public abstract void ResetItemTimeout(
	HttpContext context,
	string id


Type: System.Web.HttpContext

The HttpContext for the current request.

Type: System.String

The session identifier for the current request.

The SessionStateModule object calls the ResetItemTimeout method to update the expiration date and time for a session to the current date and time plus the session Timeout value when either:

If an ASP.NET page is requested and the EnableSessionState attribute is set to false, the ResetItemTimeout method is still called to update the expiration date and time of the data in the session data store.

For an example of a session-state store provider implementation, see Implementing a Session-State Store Provider.

.NET Framework

Supported in: 4.6, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

© 2014 Microsoft