I am unable to store sessions variables as easily as described in the manual using $_SESSION.
this is my code (using PHP 4.1.2):
<?php
session_start();
$_SESSION["testVar"] = "pony";
?>
This creates the session correctly, but does not store any variables at all.
I have 'register_globals' off.
The only way I can store session variables at the moment is by using:
<?php
session_start();
$GLOBALS["testVar"] = "pony";
session_register("testVar");
?>
This works ok, but I'd really like to use $_SESSION, so if anyone can help I'd really appreciate it.