The session in Java can be placed in a class, such as a Userbean
This point is known to the Earth people. second, VBScript cannot put a VBS class in the session
If you don't believe it, try it.
There are other restrictions such as:
Before you store an object in the Session object, you must understand which threading model it is using. Only objects that are marked "Both" can be stored in a session object that does not have a single threaded conversation locked. For more information, see " choosing a threading model " in " creating ASP Components ."
If you store an array in the session object, do not directly change the elements stored in the array. For example, the following script cannot be run.
<% session ("StoredArray") (3) = "New Value"%>
This is because the session object is implemented as a collection. The array element StoredArray (3) did not get a new assignment. This value will be included in the application object collection and will overwrite any information previously stored in this location. three, JavaScript is OK
<%
Server.Transfer ("frames.asp");
var point = {
"X": 10,
"Y": 20
};
Session (' point ') = point;
Response.Write ("<br/>point.x=" + Session ("point"). x);
Response.Write ("<br/>point.y=" + Session ("point"). Y);
%>
This is also very well understood. In JavaScript, "class" is also a data type.