9. Cookies and Sessions

Chapter 8, “Creating Web Applications,” covered a number of techniques for developing more fully realized Web sites. One missing piece—the focus of this chapter—is how to maintain “state” as the user traverses a multipage Web site. The Hypertext Transfer Protocol (HTTP) is a stateless technology, meaning that it has no built-in method for tracking a user or remembering data from one page of an application to the next. This is a serious problem, because e-commerce ...

Get PHP for the Web: Visual QuickStart Guide, Fourth Edition 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.