1. Sessions in Java can be placed with classes, such as a userbean.
Everyone on Earth knows this.
2. VBScript cannot put a vbs class into the session
Try it if you don't believe it.
Other restrictions include:
When you store objectsSessionBefore using an object, you must know which thread model it uses. Only objects marked as "both" can be stored inSessionObject. For more information, seeCreate ASP Components"In"SelectThread Model".
If you store an array inSessionDo not directly change the elements stored in the array. For example, the following scripts cannot be run.
<% SESSION ("storedarray") (3) = "New Value" %>
This is becauseSessionObjects are implemented as collections. The array element storedarray (3) is not assigned a new value. This value will be included inApplicationAnd overwrite any information stored before this location.
3. Javascript is acceptable.
<%
// 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 actually a good understanding. In JavaScript, "class" is also a data type.