I'm working on that already for the last 3 hours and I still cannot figure out what should be the problem...
on my login-page I'm setting the following session variables:
$username = 'test';
$password = 'abc';
session_register("password");
session_register("username");
On all the other pages I'm using session_start() before using those session variables. Everything works fine if I got register_globals = On in my php.ini.
If register_globals is set to Off, then I run the following line to extract the variables of the $HTTP_SESSION_VARS to be able to use $password and $username:
if (!empty($HTTP_SESSION_VARS)) { extract($HTTP_SESSION_VARS); }
This works fine with $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS and all the other global arrays, but with $HTTP_SESSION_VARS it won't. HTTP_SESSION_VARS is always empty, no matter what I do!
I'm using PHP4.0.6 currently running on a win32 machine. I didn't try it on my linux box yet, but anyway, I need to get it to work on both.
hope someone can help me out!
Thanks a lot
philip