Chapter 11. Managing User Sessions

Understanding User Sessions

Most Web sites consist of more than one Web page, with users moving from one Web page to the next. A user session is the time that a user spends at a Web site, from the first Web page viewed until the user leaves the Web site. Information from one Web page is not available on another Web page, but you can pass information from one Web page to the next or store information that is available to all the Web pages in a session by using PHP features.

Moving from One Web Page to the Next

Users can move from one Web page to the next by one of several methods. One common method is HTML links, created by <a> tags. When the user clicks the link, a new page is opened. In PHP, you can provide links ...

Get PHP & MySQL®: Your visual blueprint™ for creating dynamic, database-driven Web sites 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.