Hello,
I have some scripts which produce unexpected results.
I set session vars in a script
$_SESSION['id'] = 5;
and in another script page I do this
$id = 6;
And when I write $SESSION['id'] to the screen.. Guess what I get ...
echo $_SESSION['id'];
// I get 6... Not 5
How can this be ? Or what I can do to prevent it happening like this ? I want $_SESSION vars store values only when I assing something in it directly .
Thanks in advance.