System.Web.SessionState.HttpSessionState: Method Members

The methods of System.Web.SessionState.HttpSessionState are listed below. For a list of all members, see the HttpSessionState Members list.

See Also: Inherited members from System.Object

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.