Session & amp; cookie. What does session mean?

Source: Internet
Author: User

Session & cookie, what does session mean?

Session is required for the project at hand, so the concept of session and cookie is reorganized.

1. sessions are stored on the server.

2. Cookies are stored on the client.

3. cookie is a network protocol that is transmitted between the client and the server through an http link, but the session does not

4. The session mechanism on the server needs to be implemented through cookies: session IDs must be passed through cookies. The session IDs of various web frameworks have different names, but they are all one id.

5. the browser supports cookies by default, but can be disabled manually. For API access, you need to set cookies manually.


Haha, I don't know if there are any errors ~


What is Session?

The meaning of session in programming
The Session object stores the information required for a specific user Session. In this way, when a user jumps between Web pages of an application, the variables stored in the Session object will not be lost, but will continue to exist throughout the user Session.

When a user requests a Web page from an application, if the user does not have a Session, the Web server automatically creates a Session object. When a session expires or is abandoned, the server terminates the session.

The most common usage of Session objects is to store users' preferences. For example, if you specify that you do not like to view images, you can store the information in the Session object. For more information about using Session objects, see "manage sessions" in the "ASP applications" section ".

Note that the session status is retained only in the browser that supports cookies.

What is Session?

The meaning of session in programming
The Session object stores the information required for a specific user Session. In this way, when a user jumps between Web pages of an application, the variables stored in the Session object will not be lost, but will continue to exist throughout the user Session.

When a user requests a Web page from an application, if the user does not have a Session, the Web server automatically creates a Session object. When a session expires or is abandoned, the server terminates the session.

The most common usage of Session objects is to store users' preferences. For example, if you specify that you do not like to view images, you can store the information in the Session object. For more information about using Session objects, see "manage sessions" in the "ASP applications" section ".

Note that the session status is retained only in the browser that supports cookies.

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.