In this chapter, I’ll talk about cookies and sessions.
With a cookie, you can store information on the web browser’s system in the form of strings as key-value pairs that the web server has previously sent to this browser. The information is later sent from the browser to the server in the HTTP header. A cookie (if configured accordingly) is not deleted from the browser system by restarting the browser or by restarting the system. Of course, the browser’s human user can manually delete the cookie.
A browser does not have to accept cookies, and it does not have to save them either. ...