Home >Backend Development >PHP Problem >What is the workflow of php cookie

What is the workflow of php cookie

(*-*)浩
(*-*)浩Original
2019-10-12 10:42:492915browse

Today I will write a blog about my experience about cookies to share with you.

What is the workflow of php cookie

The following is a rough flow chart:

What is the workflow of php cookie

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Can php quote css?Next article:Can php quote css?