heres what to do:
at the start of every page you must have:
<?
session_start();
?>
If storing quite small arrays then I would suggest imploding the array so it's just a single string.
e.g.
<?
$array[0] = "none";
$array[1] = "alpha";
$array[2] = "beta";
$array[3] = "gamma";
?>
or
<?
$array = array('none', 'alpha', 'beta','gamma');
?>
would be turned into:
none|alpha|beta|gamma
This can be done by using the implode function:
<?
$array_stored = implode("|", $array);
?>
then register that array into a session:
<?
session_register("array_stored");
?>
for more than one, seperate with a comma ("one","two");
NOTE: It wont work if you include the '$' in session_register
setting up page links
Every internal site link (that needs session access) must add this at the end of each link:
filename.php?PHPSESSID=<? echo $PHPSESSID; ?>
returning array to it's original form
using explode on the page you want to display the array to it's original form!
(remember to add session_start(); to the top of the page
<?
session_start();
$array_stored = $_SESSION['array_stored'];
$array = explode("|", $array_stored);
// now you can echo session values
echo $array[1]; // will display 'alpha'
?>
I HOPE THIS HELPS!!
visit my site www.urban-influence.com