Okay solved the last problem.
Instead of this
$SESSION[$in]->display();
Use this
$SESSION['$in']->display();
Right so I'm just going to show what my initial problem is. This is a simple example, I don't know if the session variable are being overwritten or what.
Here's how I set a few session variables...
for($ind=5;$ind!=9;$ind++){
$string="test string $ind";
$SESSION['$ind']=$string;
$s=$SESSION['$ind'];
print "False session value being set is $s";
}
Which prints out..
False session value being set is test string 5, at index 5
False session value being set is test string 6, at index 6
False session value being set is test string 7, at index 7
False session value being set is test string 8, at index 8
Which is grand.
Then when I try display the list of session variables.
for($ind=5;$ind!=9;$ind++){
$string= $_SESSION['$ind'];
print "<br />Getting fake session value $string at index $ind<br />";
}
Its gets this....
Getting fake session value test string 8 at index 5
Getting fake session value test string 8 at index 6
Getting fake session value test string 8 at index 7
Getting fake session value test string 8 at index 8
Its like the last session variable is overwriting all of them?
This exact same thing is happening with my objects... Has anyone come across this?