The similarities and differences between the cookie and session:A. Cookie mechanismCookies are small pieces of text that the server stores on the local machine and are sent to the same server with each request. The IETF RFC 2965 HTTP State
Although the session mechanism has been used in Web applications for a long time, there are still many people who are not clear about the nature of the session mechanism to apply the technology correctly. This article discusses the working mechanism
, cookie mechanism and the difference between the session mechanism
*************************************************************************************
Specifically, the cookie mechanism is a scheme for maintaining state on the client side, and
the process of creating a Cookie and session
We all know that the HTTP protocol itself is stateless, and the client simply sends a request to the server to download some files, and each request that the client sends to the server is independent.
Cookie and Session, cookiesession
This article respectively introduces and summarizes cookies and sessions, and compares and analyzes the two knowledge points, so that you can have a deeper understanding of cookies and sessions, it also brings
Cookies: Data (usually encrypted) stored on the user's local terminal (client Side) by certain websites in order to identify users.
The concept of Web Storage (Localstorage and Sessionstorage) is similar to a cookie, except that it is designed for
These are basic knowledge, but it is necessary to do a thorough understanding. Let's take a brief look.The definition of both:When you are browsing the website, the Web server will send a small piece of information on your computer, and the Cookie
This paper introduces and summarizes the cookie and session, and compares two knowledge points respectively, so that we have a more in-depth understanding of the cookie and session, and bring enlightenment to the flexible use of our own development
The Localstorage life cycle is permanent, which means that the information will always be present unless the user is shown to clear Localstorage information on the UI provided by the browser.The Sessionstorage life cycle is the current window or tab,
When you are browsing the website, the Web server will send a small piece of information on your computer, and the Cookie will help you to make the text or some choices on the website. are recorded. The next time you visit the same website, the Web
Explanation of the difference between a cookie and a sessionThese are basic knowledge, but it is necessary to do a thorough understanding. Let's take a brief look.The definition of both:When you are browsing the website, the Web server will send a
explanation of the difference between a cookie and a sessionThese are basic knowledge, but it is necessary to do a thorough understanding. Let's take a brief look.The definition of both:When you are browsing the website, the Web server will send a
Cookie MechanismCookies are small pieces of text that the server stores on the local machine and are sent to the same server with each request. The IETF RFC 2965 HTTP State Management mechanism is a generic cookie specification. The Web server sends
Abstract: Although the session mechanism is applied to Web applications Program It has been adopted for a long time, but many people still do not know the nature of the session mechanism, and even cannot correctly apply this technology. This article
How the session worksI. Term sessionIn my experience, the word session is abused only after transaction. What's more interesting is that transaction and session have the same meaning in some contexts.
Session, which is often translated into
How the session worksterm Session in my experience, the term "session" is probably second only to transaction, and more interestingly, the meaning of transaction and the session in some contexts is the same. Session , Chinese is often translated
The difference between a cookie and a session-summary of Good Articles
This paper introduces and summarizes the cookie and session, and compares two knowledge points respectively, so that we have a more in-depth understanding of the cookie
These are basic knowledge, but it is necessary to do a thorough understanding. Let's take a brief look. The definition of both: When you are browsing the website, the Web server will send a small piece of information on your computer, and the Cookie
Explanation of the difference between a cookie and a sessionThese are basic knowledge, but it is necessary to do a thorough understanding. Let's take a brief look.The definition of both:When you are browsing the website, the Web server will send a
PHP read-write cookie statement: Setcookie ("User", "Lilu", Time () +3600); Echo $_cookie["user"]; JavaScript read-write cookie code:function Setcookie (name,value)//two parameters, one is the name of the cookie, one is the value { var days = 30
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.