Session / variables no longer available (PHP)
Posted on 2016-10-24
I am trying to use php sessions on my site but the data is not available to the php ajax scripts or other pages.
It is pretty simple, I'm using:
Then I set some session variables:
$_SESSION["myvar"] = "blah";
The session variables are available to the page itself but if I go to any other page on my site now and run
I get NULL
Also I'm running some simple ajax calls to php scripts within the same page and when I check the session variables in those I also get NULL.
What's going on?