I have a login page "http://members.mysite.com/login.php" which accepts the username and password via a form post to $PHP_SELF. The data is verified via MySQL calls, and if username and password match, it then assigns a value to a pre registered session variable -session_register("session")-.
Everything at this point works. I have tested the session var and everything is as it should be. I have tested with session_is_registered, and it is, and I have printed out the session_encode with everything as it should be.
Next, my script calls header("Location http://members.mysite.com/main.php") which is in the same site, and the main.php page does not have the "session" variable registered. On the "main.php" page, the first thing I have is session_start(), and I test imediately for session_is_registered("session"), and it is not.
What am I missing?
THanks
John