SessionStateStoreProviderBase.ResetItemTimeout(HttpContext, String) SessionStateStoreProviderBase.ResetItemTimeout(HttpContext, String) SessionStateStoreProviderBase.ResetItemTimeout(HttpContext, String) SessionStateStoreProviderBase.ResetItemTimeout(HttpContext, String) Method

Definition

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

public:
 abstract void ResetItemTimeout(System::Web::HttpContext ^ context, System::String ^ id);
public abstract void ResetItemTimeout (System.Web.HttpContext context, string id);
abstract member ResetItemTimeout : System.Web.HttpContext * string -> unit
Public MustOverride Sub ResetItemTimeout (context As HttpContext, id As String)

Parameters

context
HttpContext HttpContext HttpContext HttpContext

The HttpContext for the current request.

id
String String String String

The session identifier for the current request.

Examples

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

Remarks

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.

Applies to

See also