Question

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top