Had a problem with php session variables on Windows XP. The session variable declared with $_SESSION did not carry over from one page to another. As it turned out, the culprit was a line in the  php.ini  file:

session.cookie_path = \

I changed it back to the original  forward slash

session.cookie_path = /

 and it worked.