Application Session page Scope of JSP

Source: Internet
Author: User

application: The global scope, the entire application share, is the same webapp share in the deployment file, with a lifecycle of: application start to stop.

Session Scope: When the user first accesses a new session, the server can remember the session state. Life cycle: The session timed out, or the server-side forced the session to expire and the browser shut down.

Request : The requested scope is a request from the client.

Page : One of the JSP pages.

because for example some data is need to keep and pass, for example you make a website, a person log in, his information needs to save, if use application to save this user's information, then that is when this website restarts, namely the entire application is finished will disappear.

if the session is accessed, then the session expires, this person's information disappears, the session failure includes a timeout that can give the session set a life cycle, for example, only 1 minutes, if the person's information in 1 minutes, if more than 1 minutes, Information is gone, there is a way to let the session failure is to clear the session, such as the browser's clear session or the program can be forced to clear, this time the character information is not

with request, the client sends a request to the server, and when it is finished, the message is gone.

The last page is better understood, and there is no

Copyright NOTICE: This article is the original blogger articles, reproduced please indicate the source.

Application Session page Scope of JSP

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.