This documentation is archived and is not being maintained.
HttpSessionStateContainer Members
Visual Studio 2008
Contains session-state values as well as session-level settings for the current request.
The HttpSessionStateContainer type exposes the following members.
| Name | Description | |
|---|---|---|
|
HttpSessionStateContainer | Creates a new HttpSessionStateContainer object and initializes it with the specified settings and values. |
| Name | Description | |
|---|---|---|
|
Abandon | Marks the current session as abandoned. |
|
Add | Adds a new item to the session-state collection. |
|
Clear | Removes all values and keys from the session-state collection. |
|
CopyTo | Copies the collection of session-state values to a one-dimensional array, starting at the specified index in the array. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEnumerator | Returns an enumerator that can be used to read all the session-state variable names in the current session. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Deletes an item from the session-state collection. |
|
RemoveAll | Clears all session-state values. |
|
RemoveAt | Deletes an item at a specified index from the session-state collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
CodePage | Gets or sets the character-set identifier for the current session. |
|
CookieMode | Gets a value that indicates whether the application is configured for cookieless sessions. |
|
Count | Gets the number of items in the session-state collection. |
|
IsAbandoned | Gets a value indicating whether the current session has been abandoned. |
|
IsCookieless | Gets a value indicating whether the session ID is embedded in the URL or stored in an HTTP cookie. |
|
IsNewSession | Gets a value indicating whether the session was created with the current request. |
|
IsReadOnly | Gets a value indicating whether the session is read-only. |
|
IsSynchronized | Gets a value indicating whether access to the collection of session-state values is synchronized (thread safe). |
|
Item | Overloaded. Gets or sets individual session values. |
|
Keys | Gets a collection of the keys for all values stored in the session-state collection. |
|
LCID | Gets or sets the locale identifier (LCID) of the current session. |
|
Mode | Gets the current session-state mode. |
|
SessionID | Gets the unique identifier for the session. |
|
StaticObjects | Gets a collection of objects declared by <object Runat="Server" Scope="Session"/> tags within the ASP.NET application file Global.asax. |
|
SyncRoot | Gets an object that can be used to synchronize access to the collection of session-state values. |
|
Timeout | Gets and sets the amount of time, in minutes, allowed between requests before the session-state provider terminates the session. |
Show: