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.