I have started a session, and I add image id's to a simple 1 dimensionsal array. nothing complicated. as the sql executes in a do while loop, I add the image IDs to the array.
//create array
$search_result_array = array () ;
//register session variable
$_SESSION['search_result_array'] = $search_result_array ;
I know this works because I now echo the output to screen, and after it's complete do a
echo count($search_result_array) ;
and get the correct number of entries in the array.
when I click on a link, on the page I an going to, I start the session as normal.
I then tried accessing the $_SESSION array variable and I get nothing.
when I do
count($_SESSION['search_result_array']) ;
on this page I get a count of 0?
So I printed out the session ID on both pages, and the session ID is the same?
HELP! please..........