I built a PHP application on WAMP localhost, then tranferred it to a commercial UNIX server. Although session variables worked fine on the localhost, they don't work on the UNIX server. Why?
I'm using the common sessions code, like:
$_SESSION['Var'] = "a_string";
PAGE 2 (linked from page 1)
$Var = $_SESSION['Var'];
If I echo the $Var on page 2 on the WAMP localhost, the value is printed perfectly. But when the same script runs on the UNIX server, $Var is empty. What should I do?