A McGraw Hill Book Plug-in PHP: 100 Power Solutions
By Robin Nixon (McGraw Hill 2010, ISBN 978-0071666596)

Home | About | Buy It | Download | Contact

Select Chapter: 1  2  3  4  5  6  7  8  9 10 11 12

Chapter 9: Plug-in 65 - Create Session

If you have a website which a user can join then you need a way to keep track of that person as they navigate through the site. Not for reasons of spying on them or anything like that, but purely in order to keep them logged in and to offer them all the benefits that membership offers.

The Figure shows this plug-in being used to create a session and read back one of the session variables.