I have a login.php that does a POST submit to itself. On the second call to login.php (when the login and passwd are in $HTTP_POST_VARS) I check my database and if login/password match I
session_register('login');
$HTTP_SESSION_VARS['login'];
Header("userpage.php");
however in userpage.php I see that the value of $HTTP_SESSION_VARS['login'] is "", though session_is_registered('login') is TRUE.
Where has my data gone?
Both pages (login.php and userpage.php) have session_start() as their first line. Is this incorrect?
To make things even stranger, if I edit userpage.php and set $HTTP_SESSION_VARS['login'] = "jblow"; then on reload of userpage.php the $HTTP_SESSION_VARS['login'] is set correctly!
whoah -- think it's time to go back to C++.
any suggestions?
-j