with PHP you only register the variable after it has been populated with your final value you want to pass along to the next page.
example:
session_start();
$var = "hello there";
session_register("var");
hope this helps!!
vaggelis wrote:
Hello, i have an application and i want to change from cookies to sessions, for user authuntication.
1st file:
session_start();
session_register("count1");
global $count1;
$count1 = "aghges";
2nd file
session_start();
echo $_REQUEST["count1"] ;
As i have understood, the server sends a cookie to the client with the SID. So automatically the client should have access to the session's variables.
Am i wrong?
Why isn't it working?