According to phpinfo(), register_globals is OFF. However, I have a local (or POST) variable overwriting my SESSION variable of the same name. And it gets stranger...
At no point does the SESSION variable have a value during the first page load, as it shouldn't. But if I reload the page (and re-post), the SESSION variable gets overwritten with either the POST variable with the same name (or perhaps the local variable with the same name from the previous load...but doubtful). This happens in both Firefox and IE.
Any idea what might be causing this? I'm stumped.
PHP v.5.3.1
The first two lines of code are:
session_start();
echo "<!-- ".$_SESSION['my_var']." -->";
And as I stated above, there is both a $my_var and a $_POST['my_var'] on the page. The only line of code with the word "session" in it is the "session_start()" statement, so I'm pretty sure this is happening by some magical method.