To create a session array, first declare a normal array and a reset to its element, then store the array as a whole in the Session object.
Do not change the elements in the session array. This is wrong: <% session ("storedarray") (2) = "Ericsone"%>
This is an example application of a session array: <% session ("myarray") (2) = "Eric"%>
----------- 4-18A.ASP ------------ <% @ language = "VBScript"%> <% @ language = "vbscript"%>
----------- 4-18b.asp ------------ <% localarray = session ("storedarray") localarray (1) = "world" response.write Localarray (0) & "& localarray (1) Session (" StoredAlarray "= localarray%> <% localarray = session (" StoredAlary ") Localarray (1) =" World "Response.write Localarray (0) &", "& localarray (1) session (" storedarray "= localarray%>