First, the concept of cookies
A Cookie (session) can be simply understood as: A user opens a browser, clicks multiple links, accesses multiple Web resources on the server, and then closes the browser, the entire process is called a session.
Ii. issues addressed during the session
In the process of using the browser and the server for the session, the user inevitably produces some data, the program needs to save the data for each user.
Iii. two techniques for saving sessions
A cookie is a client-side technology in which a program writes each user's amount of data in a cookie-style browser to their respective user.
Session is a service-side technology, using this technology, the server at run time can be used for each user's browser to create a unique session object, because the session for the user browser exclusive, so the user access to the server's Web resources, Can put their own data in the session, when the user to access other Web resources on the server, the other Web resources from the user's own session to remove data for the user Service.
Java Web Session Management One: using Cookies for session management