Getting started with JSP built-in objects (5) Detailed explanation of Session object

Source: Internet
Author: User

After studying the request and response, we will study the session object together, and we can say that the session object and the request object are the two most important objects in the nine big objects.

Introduction to Session Objects

In the previous session to explain the range of properties, has learned about the session of some uses, but in the actual development, the most important use of the session is to complete the user's login, logoff and other common functions, each session object represents a different access user.

The session is an instantiated object of the Javax.servlet.http.HttpSession interface, and all sessions can only be applied to the HTTP protocol.

The main method of HttpSession interface

Note: About the session of the method, the students in the search for the API when the attention of the general method followed by deprecated means that this set of methods is outdated, that is, the use of obsolete methods.

For the session method, we as before, one by one to look at their usage, also said before, its usefulness is mainly reflected in the log off.

Related Article

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.