System.Web.SessionState.HttpSessionState.Add Method

Adds a new item to the session-state collection.

Syntax

public void Add (string name, object value)

Parameters

name
The name of the item to add to the session-state collection.
value
The value of the item to add to the session-state collection.

Remarks

If the name parameter refers to an existing session state item, the existing item is overwritten with the specified value.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0