Chapter 7. Session

Table of Contents

Session Instance variables
Session Instance methods
Accessible Instance methods
Internal instance methods
Session Examples
Using "auto_init"
Unregistering variables and deleting sessions
Reading and understanding session data for debugging
How "serialize()" operates
PHP4 Sessions with PHPlib using session4.inc*
Preface
Quick Install
Changes since PHPlib-7.2c
Porting old sites PHPlib for PHP4
Creating new sites with PHPlib for PHP4
Download
PHP4 Sessions with PHPlib using session4_custom.inc*
Preface: Why the damn thing is happened.
How session4_cust.inc works
Differences from older PHPlib sessions

The Session class keeps a list of global variable names and provides a set of functions to load and save these variables from and to a data storage container (we will call it container for shortness). The named variables may be scalar variables (strings, integers and floats) or arrays. Objects are handled as well, provided they implement two instance variables naming their class and enumerating their (persistent) slots.

Accessible instance variables

Internal instance variables