views:

83

answers:

1

My PHP session fluctuates between different values for no apparent reason. here is my test code that proves it:

<?php
//test.php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);

session_start();

print_r($_SESSION);

?>

When I refresh that test.php, the $_SESSION has different values (about 3 different arrays in total), as if I was browsing the site in between refreshing the page (I'm not).

Echo'ing session_id() doesn't output anything.

Any ideas? This is completely messing up my handling of sessions/authentication throughout my site.

Update: I'm using RackSpace Cloud Sites for hosting

+1  A: 

Rackspace requires a different PHP session handler: http://cloudsites.rackspacecloud.com/index.php/Why_are_my_PHP_sessions_not_working%3F

Mike Sherov
great, works fine now
babonk