I have you files:
set.php
<?php
session_start();
$_SESSION['user_name'] = "anglinb";
var_dump($_SESSION);
?>
get.php
<?php
session_start();
var_dump($_SESSION);
?>
I have one server where I can go to set.php and then go to get.php and both pages will show the same result of vardump.
The second server, hosted by namecheap, will not store the data. The $_SESSION superglobal was working fine but suddenly it stopped working.
What I have tired
I have check the writablity of the tmp domain suggested here stackoverflow.com. However the information still doesn't persist between requests. I know my browser settings and my code is ok because it works on my server.
I have tried to set the path to a different directory where the permissions are 777.
ini_set(' session.save_path','/tmpp');
I can post the phpinfo page if this would help.
Here are the two cookies:
set:
get: