Hello All!
First of all, i am new in PHP. I am testing a new login form for my site. I want to check the id and password against a table and if it is ok redirect to the desired page. Well, the authentication is ok.
I call a script login.php4 where i look into my MySql table and if it is ok i start a session and redirect:
session_start();
session_register("var1");
session_register("var2");
$page="mypage.php4";
header("Location: $page");
In "mypage.php4" i start with:
session_start();
$var3=HTTP_SESSION_VARS["var1"];
$var4=HTTP_SESSION_VARS["var2"];
The first time i execute he tells me that there is no index for "var1" and "var2".
It seems it is not passing the session id. If i back/forward after this first time it works fine.
What am i doing wrong?
Thanks you all!
André Fettermann
http://www.mochilabr.com