Export (0) Print
Expand All

HttpSessionState Properties

The properties of the HttpSessionState class are listed here. For a complete list of HttpSessionState class members, see the HttpSessionState Members topic.

Public Properties

public propertyCodePage Gets or sets the code page identifier for the current session.
public propertyContents Gets a reference to the current session-state object.
public propertyCount Gets the number of items in the session-state collection.
public propertyIsCookieless Gets a value indicating whether the session ID is embedded in the URL or stored in an HTTP cookie.
public propertyIsNewSession Gets a value indicating whether the session was created with the current request.
public propertyIsReadOnly Gets a value indicating whether the session is read-only.
public propertyIsSynchronized Gets a value indicating whether access to the collection of session-state values is synchronized (thread safe).
public propertyItem Overloaded. Gets or sets individual session values.

In C#, this property is the indexer for the HttpSessionState class.

public propertyKeys Gets a collection of the keys of all values stored in the session.
public propertyLCID Gets or sets the locale identifier (LCID) of the current session.
public propertyMode Gets the current session-state mode.
public propertySessionID Gets the unique session ID used to identify the session.
public propertyStaticObjects Gets a collection of objects declared by <object Runat="Server" Scope="Session"/> tags within the ASP.NET application file global.asax.
public propertySyncRoot Gets an object that can be used to synchronize access to the collection of session-state values.
public propertyTimeout Gets and sets the time-out period (in minutes) allowed between requests before the session-state provider terminates the session.

See Also

HttpSessionState Class | System.Web.SessionState Namespace

Show:
© 2014 Microsoft