Skip to Content
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
book

PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

by Larry Ullman
May 2003
Intermediate to advanced
592 pages
14h 28m
English
Peachpit Press
Content preview from PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide

Chapter 7. Cookies and Sessions

The HyperText Transfer Protocol (HTTP) is a stateless technology, meaning that each individual HTML page is independent. HTTP has no method for tracking users or retaining variables as a person traverses a site. Using a Web scripting language like PHP you can overcome the statelessness of the Web. You have a few options to choose from, the most popular two being cookies and sessions.

Prior to the existence of cookies, surfing a Web site was a trip without a history. Although your browser tracked the pages you visited, allowing you to use the back button to return to previously visited pages, the server kept no record of who had seen what. Without the server being able to track a user, there can be no shopping ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

PHP and MySQL for Dynamic Web Sites: Visual Quickpro Guide, Second Edition

Larry Ullman

Publisher Resources

ISBN: 0321186486Purchase book