System.Web.SessionState.HttpSessionState.Remove Method

Deletes an item from the session-state collection.

Syntax

public void Remove (string name)

Parameters

name
The name of the item to delete from the session-state collection.

Remarks

If the session-state collection does not contain an element with the specified name, the collection remains unchanged. No exception is thrown.

Requirements

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