Hi all,
I developed a site on my development server which has extensive use of session variables. Everything worked well until I transfered the site to a different server. The codes doesn't change but all session variables don't work anymore.
This is an example of how I define session variables:
first page:
session_name("MySession");
session_start();
session_register("Maccess");
$HTTP_SESSION_VARS["Maccess"] = "test";
...
second page:
session_start();
echo "Maccess value: " . $HTTP_SESSION_VARS["Maccess"];
This will output only
Maccess value:
My question is why would this work on one server but not the other. I checked the php.ini file and they are both set the same way.
I appreciate any help and thanks in advance.
Anh