Java Web Session Management One: using Cookies for session management

Source: Internet
Author: User

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

  • Cookies

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

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

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.