Dear all ...
close to desperation!!! I do not know what is going on with PHP session variables in my home server (Win XP, Apache 2.0, php 4.3.1, track_vars is on and register_globals if off)).
I use the superglobal $SESSION to store variables, they are written to the temporary file in my computer (I can read them), but when I try to pass the variables to another (from php1.php where I started the session to php2.php), the server is unable to recover any value from $SESSSION. Can anyone give me some advice? I have no clue since I've tried so many possible errors that I am desperated!!!
I enclose some code below ...
Thanks in advance!!!
in php1.php ...
session_start();
$nom_usuari = mysql_result($resultat,0,1);
$_SESSION["user"] = $nom_usuari;
$_SESSION["accepted"] = "1";
in php2.php
if($_SESSION["user"]){print ("Sessio Registrada!!!");} else {print ("Sessio NO registrada");}
print ("<div class=\"text1\">Moltes gràcies, ".$_SESSION["user"].", esperem tornar-te a veure aviat per aquí!!!</div>");