SessionStateStoreData Constructor (ISessionStateItemCollection, HttpStaticObjectsCollection, Int32)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Creates a new instance of the SessionStateStoreData class.

Namespace:   System.Web.SessionState
Assembly:  System.Web (in System.Web.dll)

public SessionStateStoreData(
	ISessionStateItemCollection sessionItems,
	HttpStaticObjectsCollection staticObjects,
	int timeout


Type: System.Web.SessionState.ISessionStateItemCollection

The session variables and values for the current session.

Type: System.Web.HttpStaticObjectsCollection

The HttpStaticObjectsCollection for the current session.

Type: System.Int32

The Timeout for the current session.

The SessionStateStoreData class is used to represent session-state data for a session store to the SessionStateModule. The SessionStateStoreData object contains the session-state variable names and values, static object references, and Timeout information for the current session.

The SessionStateStoreData class is used by ASP.NET and implementers of a custom session-state store to pass session-state information to and from the SessionStateModule.

Custom session-store implementers construct a SessionStateStoreData object in implementations of the GetItem, GetItemExclusive, and CreateNewStoreData methods.

.NET Framework
Available since 2.0
Return to top