I know this is an old thread, but I am now encountering a similar problem, and noe of the responses answer your question.
My problem is:
1) Set a session variable:
$SESSION["name"]="James";
2) Read the variable:
echo $SESSION["name"];
...so far, so good...
3) Test the variable:
if ($_SESSION["name"]==="James")
{ echo "Hi James."; }
else
{ echo "You're not James."; }
Earlier versions of Windows:
Hi James.
IE5.5 on a Windows 2k Server Pro machine:
You're not James.
I also noticed that it sometimes reads the session variables correctly, but only if there is no attempt to check and establish another session during the original session (whew).
For example, if someone logs into our site using my custom login mechanism, then they go to the Fud Forum discussion groups, they are correctly logged in to the forum by my modificatioins to the Fud scripts, and the Fud session IS established with the same session_id() as the user had when they logged into the site. However the original session data is lost, and only the Fud session remains. My custom logout mechanism does not affect the Fud session on Win2k Server Pro...but it works fine on Win95/98/Me/XP.
Hmmm... This is definitely a security issue with Win2k...but where to start? I'll bet it's a bug in Microsoft's programming as they attempt to be extra-"secure" (ahem).
Any thoughts are greatly appreciated.
Thanks in advance...