Sessions and Uploads

Sessions, Cookies and File Uploads

HTTP forgets each request once it is answered. Cookies make the browser remind the server, sessions keep data on the server under one cookie, and uploads bring files. This section builds a "remember me" cookie, a session cart and a product-image upload for the bookshop, under Apache 129 with the PHP module (SAPIs) on port 8215, with curl 3,008 as the browser (-c saves its cookie jar, -b sends it).

Subsections