15.3. Summary

PHP offers two ways for working with sessions. One way is to use cookies. Cookies have some significant disadvantages over the second method, PHP's session library. Sessions can be used to store data across multiple screens and to track users. With the help of just a few simple functions, it is possible to simulate a connection-oriented protocol.

Get PHP and PostgreSQL: Advanced Web Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.