This is driving me nuts. The code works fine on localhost but not on live server.
I set the session in subfolder, This is my subfolder file, I set a session using PHP:
$_SESSION['test'] = 'hi';
print_r($_SESSION);
But I can't access the session i set in subfolder, in root index using in index:
print_r($_SESSION);
On local the session variable test works fine, but on live server it never works. it is empty.
The code is same, and i am using session_start() on top of both pages.
Can someone tell me what is possible for this? I've been trying so many hours! Is there aserver config that can cause this?