Open In App

ASP Session.Contents.RemoveAll Method

Last Updated : 27 Jan, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

The Session.Contents.RemoveAll Method in ASP is used to remove or erase all the items from the content List. It is a predefined method of the Session type Object.

Syntax:

Session.Contents.RemoveAll()

Parameter Value: This method does not contain any value.

Return Value: It does not return any value.

Example Code: Below code used to delete all the items from the content collection.




<%
Session.Contents.RemoveAll()
%>



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads