This documentation is archived and is not being maintained.

HttpSessionStateContainer.Remove Method

Deletes an item from the session-state collection.

Namespace: System.Web.SessionState
Assembly: System.Web (in system.web.dll)

public void Remove (
	string name
public final void Remove (
	String name
public final function Remove (
	name : String
Not applicable.



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

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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0