Chapter 9. Cookies and Sessions
In the previous chapter, you learned a number of techniques for developing more complete Web applications. One of the problems you’ll encounter as you begin to assemble a multipage Web site is that the HyperText Transfer Protocol (HTTP) is a stateless technology. As a Web developer, this means you have 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 applications, user registration and login systems, and other common online services rely on this functionality. Fortunately, maintaining state from one page to another is fairly simple using PHP.
This chapter discusses the two main methods for tracking data: cookies and ...
Get PHP for the World Wide Web, Second Edition: Visual Quickstart Guide 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.