IHttpSessionState::Clear Method ()

 

Clears all values from the session-state item collection.

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

void Clear()

Clear performs the same function as RemoveAll.

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: