There is a problem with the session!"; echo $s->log; exit(); } /* Add some data to the session. */ $s->data['uname'] = "John Doe"; $s->data['favcolor'] = "orange"; $s->data['ip_address'] = $_SERVER['REMOTE_ADDR']; /* Save the session. */ if (!$s->save()) { /* There is a problem with the session! The class has a 'log' property that contains a log of events. This log is useful for testing and debugging. */ echo "

There is a problem with the session!

"; echo $s->log; exit(); } /* On additional pages, you instantiate the session same as above. You can then access the session data using the data[] property. */ echo "
Your name is ".$s->data['uname']; echo "
Your favorite color is ".$s->data['favcolor']; echo "
Your IP Address is ".$s->data['ip_address']; /* Just for fun, display the session log. */ echo "
Session log
"; echo $s->log; ?>