Forum Moderators: coopster
The Problem Code:
<?php
$orderItem = $_SESSION["orderItem"];
$orderPrice = $_SESSION["orderPrice"];
?>
The Fixed Code:
<?php
$SorderItem = $_SESSION["orderItem"];
$SorderPrice = $_SESSION["orderPrice"];
?>
Basiclly we have until now used the exact same name for a session variable in this way, But seems this was the cause of the error for us.
Hope this helps a few people around?
-------------The Error-------------
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0.
-----------------------------------
In the previous post, It shows that if you have your variable named the exact same as the session variable then it will see it as a false global register.
The previous code also can be used as an example on how to reproduce the error for demonstration purposes.
One previous posting that had this issue or the same error was [webmasterworld.com...] but the post is to old to reply to, So figured we would produce this one and if anyone else has issues then we shall do our best to help out.
register_globals [php.net]
session.bug_compat_42 [php.net]
session.bug_compat_warn [php.net]