I used the session to hold the shopping cart values. Such as the product codes and the quantity (these values are saved in array.)
such as
$SESSION['shopping_cart_products_codes'];
$SESSION['shopping_cart_products_quantity'];
I have no problem with add more items to the cart, remove some of the item from cart, edit the value of the cart.
But when I run the cancel order page which I use
if (isset($SESSION['shopping_cart_products_codes']))
unset($SESSION['shopping_cart_products_codes']);
if (isset($SESSION['shopping_cart_products_quantity']))
unset($SESSION['shopping_cart_products_quantity']);
to clean off the cart session values.
And now I go back to the view cart page which I will use
if (isset($SESSION['shopping_cart_products_codes']))
{
...
}
if (isset($SESSION['shopping_cart_products_quantity']))
{
...
}
due to the session values are unset, the view cart will not have the activites here.
But I got this warning message:
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
HELP!
Thanks!