JSP nine large built-in objects of the session and application

Source: Internet
Author: User

The session and application are used especially for application, but want to learn a lot about the built-in objects.

The session is also referred to as the period during which the user enters the browser to close the browser. Session in front and back can be used, each time the user opens the browser to create a session, and then can be in front of the background to get the session object but cannot be created, get the way there are many foreground because it is built-in objects so you can directly use this object, In the background can be obtained through the request of the object, of course, there are other ways.

The purpose of session is to store login objects so that each foreground page can be used to determine whether the user is logged in, not landing on the return. There is a shopping cart, but now most of the shopping cart is implemented with database tables so that things in the shopping cart can be stored for a long time.

Application and session have many similarities, but application is when the server starts to create objects until the server shuts down, the purpose is to count the number of people online

JSP nine large built-in objects of the session and application

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.