I am not able to set SESSION on my godaddy shared linux hosting server.
I have given all permissions to /tmp, but that didn't worked. So I made a new folder /session and give write permissions. But that also didn't work.
When I try to read session variable from other Files, I get empty value.
Basic codes
setting session
<?php
session_save_path('/session');
session_start();
print_r(session_save_path());
$_SESSION['foo']='bar';
// echo a little message to say it is done
echo 'Setting value of foo'.$_SESSION['foo'];
?>
retrieving session
<?php
session_save_path('/session');
session_start();
print_r(session_save_path());
echo 'The value of foo is '.$_SESSION['foo'];
?>
error_reporting(E_ALL); ini_set('display_errors', '1');
– AbraCadaver