SessionStateStoreProviderBase.ResetItemTimeout Method (HttpContext, String)
Updates the expiration date and time of an item in the session data store.
Assembly: System.Web (in System.Web.dll)
Parameters
- context
-
Type:
System.Web.HttpContext
The HttpContext for the current request.
- id
-
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:
the EnableSessionState attribute is true, or
the request did not raise the AcquireRequestState and ReleaseRequestState events due to an error.
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.
Available since 2.0