Session restart when in a folder?

Hi,

si I have a little problem with my session’s here…I’ve got one file in the /public_html/connection.php with:

session_start();
$_SESSION['test'] = 'This is a test';

Another file /public_html/test.php with:

session_start();
echo($_SESSION['test']);

And a another one /public_html/ajax/ajax.php with:

session_start();
echo($_SESSION['test']);

This is some really easy code so I go to my page connection.php and my session test is stored, I go to my page test.php and echo my session test and it print “This is a test”, so far everything is fine but if I go to my page ajax.php and then return to my test.php nothing is echoing! It seems like when I enter a folder it delete all my session that were not set in that folder…

Anyone know why? This is really frustrating.

Thanks,
GP

Ok so I know why… in my public_html folder I have a php.ini file and it seems like it was the “problem”… even if I empty it just to have this file was getting me this bug.

GP