Persisting php objects with serialization and sessions

PHP objects can persist across multiple pages if you combine serialization and a session. See an example of the basic idea in this video. I’m working on a tutorial that will use the same idea to create an OOP shopping cart.

This screen cast is a supplement for my self-published e-book Thomas Blom Hansen: magic php, available through