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
)
public abstract void ResetItemTimeout (
	HttpContext context, 
	String id
)
public abstract function ResetItemTimeout (
	context : HttpContext, 
	id : String
)
Not applicable.

Parameters

context

The HttpContext for the current request.

id

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft