As of PHP 4.2, register_globals is by default turned OFF, whereas in previous versions it was turned ON.
This means autoglobals do not work anymore.
For example, let's say I loaded the page:
website.com/page.php?variable=10
With register_globals on you could do the following:
echo $variable; //This would display 10
However, if it's OFF, this would return nothing (or an error, depending on your error levels)
If you wanted to echo the variable from the url, you'd have to do this:
echo $_GET['variable']; //This will now display 10
Likewise, using sessions, you should always use $_SESSION[]. That way, if register_globals is turned off it'll work splendidly.
$_SESSION['PHPSESSID']