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

Using Sessions

One of the many very useful additions to PHP as of version 4 is built-in session support. The premise of a session is that data is stored on the server, not in the Web browser, and a session identifier is used to locate a particular user’s record (session data).

Previous to PHP 4, to create sessions, a programmer had to write an entire library of code that created a unique session ID, stored information in a database or text file, sent and read a cookie, and retrieved the stored data. Even though the PHP Base Library (Figure 7.12) simplified this process some, PHP 4’s session support is a wonderful addition.

Figure 7.12. The PHP Base Library, or PHPLib, available at http://phplib.sourceforge.net, allowed developers to use sessions ...
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