- context
The System.Web.HttpContext for the current request.
- id
The session identifier for the current request.
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:
the System.Web.Configuration.PagesSection.EnableSessionState attribute is true, or
the request did not raise the System.Web.HttpApplication.AcquireRequestState and System.Web.HttpApplication.ReleaseRequestState events due to an error.
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.