|
If you are using a session, it needs to be started and registered
before anything is printed out to the screen.
session_start();
This begins a session, using an md5 hash to uniquely create an ID number.
session_register("count");
Any variables to be used in the session need to be registered.
You can register any variables you like, but these can get out of control
if you don't remember what they were called. It might be easiest to simply
use an associative array, or object named SESSION to store all the
neccessary values in.
That session ID is stored within the client's session-cookies
(which go away when you quit the browser).
These files are written to a file in /tmp and look like this:
/tmp/sess_b7207e7f3f45b798a974c2ca72531e1b
SESSION|a:1:{s:5:"count";i:2;}
Essentially what you would see if you were to "serialize" that hash table.
more references:
http://www.php.net/manual/en/ref.session.php
http://www.zend.com/zend/tut/session.php
$Id: sessions.html,v 1.4 2006/11/04 00:00:38 willn Exp $
|