SessionStateStoreProviderBase.ResetItemTimeout(HttpContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The HttpContext for the current request.
- id
- 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:
the EnableSessionState attribute is
true
, orthe 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.