
Save array in Session object
Quote:
> I want to know that can I save arrays in Session object, so I can use
> in other pages??
> If so, how's it??
<html>
<body>
<%
if(Session("myArray")){
var myArray = Session("myArray");
Response.Write("found myArray<br>");
Response.Write("myArray[0] contains: " + myArray[0] + "<br>");
Quote:
}else{
var myArray = ["aaa","bbb"];
Session("myArray") = myArray;
Response.Write("saved myArray<br>");
Response.Write("Refresh the page to fetch it...<br>");
Quote:
}
%>
</body>
</html>
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--