If you store an array in a Session object, you should not attempt to alter the elements of the stored array directly. For example, the following script will not work:
<% Session("StoredArray")(3) = "new value" %
This is because the Session object is implemented as a collection. The array element StoredArray(3) does not receive the new value. Instead, the value is indexed into the collection, overwriting any information stored at that location.
It is strongly recommended that if you store an array in the Session object, ...[ 查看全文 ]