Java VBScript JavaScript and session__session

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.