The login scripts I have written work fine on my Unix box at home. (PHP 4.3.2), but when I upload it to the server (PHP 4.2.3), there are issues.
The login process appears to go fine. But the $_SESSION variables are not registering. That is, after I log in, it should say "Welcome James Smith" at the top of the page, because I have this
The session variables array after login:
$_SESSION['user'] = mysql_fetch_array($query);
echo "Welcome ";
echo $_SESSION['user']['firstname'] . " " . $_SESSION['user']['lastname'];
But it just prints "Welcome"
Also, any time I go to a page that requires some of these variables, the variables are not present and it kicks me back to login again.
Originally, I had session_register("_SESSION") at the top of the page, but this was causing an ISE 500. Now, I'm not getting the error... but the variables aren't there! Anyone have any ideas?