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.