Home >Backend Development >PHP Problem >What is the workflow of php cookie
Today I will write a blog about my experience about cookies to share with you.
The following is a rough flow chart:
The following is my I will introduce the meaning of this flow chart:
1.When we make a request to a web server for the first time, the web server will accept our request, and the cookie will be set during our first visit. The web server claims it and saves it on the client.
2. When we visit this website again, the browser will automatically submit the cookie information, so that the web server can determine some information about the user.
3. Cookies are only saved on the client side, and their default lifetime is 20 minutes. If we need to do something else, we can also set it manually.
The above is the detailed content of What is the workflow of php cookie. For more information, please follow other related articles on the PHP Chinese website!