Can you only set session variables from a global context?
I tried settings a variable like so: $_SESSION["value"] = $value; This only seemed to work when it wasn't inside a function. I'm currently rewriting the code that handles this to put it in a class, and I'm expecting to run into the same problem.
Any thoughts?
I tried settings a variable like so: $_SESSION["value"] = $value; This only seemed to work when it wasn't inside a function. I'm currently rewriting the code that handles this to put it in a class, and I'm expecting to run into the same problem.
Any thoughts?
