Start of the experiment:
Introduction cookie
Simply put, the user cookie is to be recorded in the operation of the page and cached locally
This cache file is of limited duration, the user can set their own
Here I will help you understand a little experiment by
First, prepare two documents, of course, only one php file can also:
php file source
Introduction session
session is a temporary server-side caching technology, close the browser cache when it will be automatically deleted.
session php file source
html file source code
The results: a red box appears in the cached data is cooker