ASP Session.Contents Collection Last Updated : 23 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The ASP Session.Contents Collection is used for collecting the items which are appended to the Application object by using script command. This Collection can also be used to provide a list of items that have been given session scope, We can use the Contents.Remove and Contents.RemoveAll methods to remove some or all of the items from the collection. Syntax: Session.Contents(Key) Parameter Values: Key: It contains a single value i.e Key which represents the name of the items. Example-1: We used to add names and objects that would be added to the contents collections. ASP <% Session("name")="Hege" Set Session("objtest")=Server.CreateObject("ADODB.Connection") %> Example-2: ASP <% Session("Name")="Akku" Session("Favourite Gane")="Cricket" for each x in Session.Contents Response.Write(x & "=" & Session.Contents(x) & "<br>") next %> Output: Name = Akku Favourite Game = Cricket Comment More infoAdvertise with us Next Article ASP Request.Cookies Collection M manaschhabra2 Follow Improve Article Tags : Websites & Apps ASP-Basics Similar Reads ASP Response.Cookies Collection Basically Cookies are small files which are stored on a userâs computer. It is used to hold a modest amount of data specific to a particular client and website and can be accessed either by the web server or by the client computer. The Response.Cookies Collection is used for setting the value of col 2 min read ASP Request.Cookies Collection Basically Cookies are small files that are stored on a userâs computer. They are used to hold a modest amount of data specific to a particular client and website and can be accessed either by the web server or by the client computer. The Request.Cookies Collection is used for returning the value of 2 min read ASP Session LCID Property The ASP Session LCID Property is used to set or get the locale identifier of a page that will be sent to the Browser. It sets or returns an integer that specifies the location or region contents like date, time, and currency of the region that will be displayed according to the location of a region. 1 min read ASP Files Collection The ASP Files Collection is used to return the collection of all the files present in a specified folder. These can be looped through to get the details of the individual files. Syntax: FolderObject.Files Example: The below code demonstrates the ASP File.Files Collection. ASP <% dim fs,fo,x set f 1 min read ASP Session.StaticObjects Collection The Session.StaticObjects Collection in ASP is used to store all the objects created by using the <object> tag within the scope of the session object. Syntax: Session.StaticObjects( Key ) Parameter Values Key: It is a required parameter. It specifies the name of the property of an object tha 1 min read ASP Request.Form Collection The Request.Form Collection in ASP is used for returning the collection of form elements that posted to the HTTP request body, with a form using the POST method. Syntax Request.Form( element )[(index)|.Count] Parameter: Element: It specifies the name of the form elements. It is a required attribute 1 min read Like