I can't get sessions to work and so I looked at the temp file to see if the values were in there, and they weren't. So I can't figure out what is going on. I made a very simple test that I think should work, but it doesn't
I have PHP 4.0.6 (I'm stuck with this till I can find a hosting company that realizes that upgrading would be a good idea) and I have this simple test:
In "test1.php"
<?
session_start();
$HTTP_SESSION_VARS['test'] = "hey";
header("Location: test2.php");
?>
In "test2.php"
<?
session_start();
var_dump($HTTP_SESSION_VARS);
?>
It prints an empty array. So I logged in via telnet and looked at the session files in /tmp and they are all empty and have a file size of 0.
Why would this be?? Thanks for your help.
😕 😕 😕