IHttpSessionState.RemoveAll Method ()

 

Clears all values from the session-state item collection.

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

void RemoveAll()

RemoveAll performs the same function as Clear.

The following code example implements the RemoveAll method of the IHttpSessionState interface to delete all items from an internal session-state item collection.

public void Clear()
{
  pSessionItems.Clear();
}

public void RemoveAll()
{
    Clear();
}

.NET Framework
Available since 2.0
Return to top
Show: