Summary: In this tutorial, you will learn how to use PHP sessions to preserve the state of the web application across pages during a session.
Introduction to PHP sessions #
The HTTP protocol is stateless. For example, when you visit the product page product.php, the web server responds with the page: