register_globals does not affect $SESSION. Or $POST, $GET, $SERVER, or $_ENV. Those variables are what you should be using instead of turning register_globals on.
laserlight wrote:I think you have a typographical error since "the script will on show any output" does not make sense.
At least he's being consistent. If he hadn't done that I'd never have understood the issue when he said
dcjones wrote:The PHP.INI file was set with register_globals = NO. In PHP 5.x register_globals is by default set OFF.
So, what's the difference?
laserlight wrote:If possible, I suggest that you take the time to get rid of the reliance on register_globals.
register_globals is gone in PHP 6; after being deprecated a few years ago, the intervening time was provided as an opportunity for developers to migrate away from its use before its removal broke their programs.