Posted: Sat Oct 25, 2003 3:49 pm
I'll definatly take your advice and get the debugger. But just for the hell of it:
Here are the last few lines from page 1. count($_SESSION) returns 6 as it should.
Here are the first few lines from page 2. count($_SESSION) returns 0.
I see no problems with this code. Oh well. Thanks guys. Time for a break.
Here are the last few lines from page 1. count($_SESSION) returns 6 as it should.
Code: Select all
<?php
echo "<tr><td align='center' colspan='3'><a href='page2.php'>Page Two</a></td></tr>";
echo "</table>";
echo "<p>";
echo "The size of the SESSIONS array is: ", count($_SESSION);
?>
</body>
</html>Here are the first few lines from page 2. count($_SESSION) returns 0.
Code: Select all
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
session_start();
header("Cache-control: private");
echo "Size of SESSION array is: ", count($_SESSION);
?>I see no problems with this code. Oh well. Thanks guys. Time for a break.