Possible Duplicate:
PHP Session Id changes between pages
I have an issue regarding sessions on the live server. The previous developer coded the site and all was working fine until we had to upgrade the server to php 5.2 last week. Then all the sessions stop working and users were unable to log in. I removed the use of session_register etc but nothing worked.
For a simple test, I copied a very simple session script from php.net and tried it on my machine and it worked. Once I loaded it onto the server, the second page would not display the session variable I created in the first page.
Is there any configuration that needs to be set up on the server in order to pass session variables?
I used print_r($_SESSION) on page one and it showed the session created, i used it again on page two and the array was empty.
Any help or suggestions would be greatly appreciated.
edit:
session_start();
was included on all pages and
print_r($_SESSION)
showed on page 1 that the session was created and that on page two it was not passed