System.Web.SessionState.HttpSessionState Members

The members of System.Web.SessionState.HttpSessionState are listed below.

See Also: Inherited members from System.Object

Public Properties

CodePageint.

Gets or sets the character-set identifier for the current session.

[read-only]
ContentsHttpSessionState.

Gets a reference to the current session-state object.

[read-only]
Countint.

Gets the number of items in the session-state collection.

[read-only]
IsCookielessbool.

Gets a value indicating whether the session ID is embedded in the URL or stored in an HTTP cookie.

[read-only]
IsNewSessionbool.

Gets a value indicating whether the session was created with the current request.

[read-only]
IsReadOnlybool.

Gets a value indicating whether the session is read-only.

[read-only]
IsSynchronizedbool.

Gets a value indicating whether access to the collection of session-state values is synchronized (thread safe).

default property
Item(int)object. Documentation for this section has not yet been entered.
default property
Item(string)object. Documentation for this section has not yet been entered.
[read-only]
KeysSystem.Collections.Specialized.NameObjectCollectionBase.KeysCollection.

Gets a collection of the keys for all values stored in the session-state collection.

LCIDint.

Gets or sets the locale identifier (LCID) of the current session.

[read-only]
ModeSessionStateMode.

Gets the current session-state mode.

[read-only]
SessionIDstring.

Gets the unique identifier for the session.

[read-only]
StaticObjectsSystem.Web.HttpStaticObjectsCollection.

Gets a collection of objects declared by <object Runat="Server" Scope="Session"/> tags within the ASP.NET application file Global.asax.

[read-only]
SyncRootobject.

Gets an object that can be used to synchronize access to the collection of session-state values.

Timeoutint.

Gets and sets the amount of time, in minutes, allowed between requests before the session-state provider terminates the session.

Public Methods

Abandon()

Cancels the current session.

Add(string, object)

Adds a new item to the session-state collection.

Clear()

Removes all keys and values from the session-state collection.

CopyTo(Array, int)

Copies the collection of session-state values to a one-dimensional array, starting at the specified index in the array.

GetEnumerator() : IEnumerator

Returns an enumerator that can be used to read all the session-state variable names in the current session.

Remove(string)

Deletes an item from the session-state collection.

RemoveAll()

Removes all keys and values from the session-state collection.

RemoveAt(int)

Deletes an item at a specified index from the session-state collection.