CHAPTER 9
image
MySQL, Sessions, and Cookies
This chapter covers a lot of different topics, ranging from using MySQL to working with PHP sessions, and from applying basic security measures to handling cookies. Although at first sight these topics may not seem too closely related, they actually are because they’re mostly to do with the processing, storage, and recall of data.
The three MySQL recipes provide a means of creating a database to hold various details about a user, the facility to add new users, and a recipe to verify a user against their username and password, while the PHP session recipes provide the ability to hold a user’s details across ...

Get Web Developer's Cookbook 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.