I've built a shopping cart using Session variable arrays. However, when a user decides to cancel his/her order, if they keep the browser open and decide to start a new order, when they add an item to their basket it shows their old order as well.
I assume this is from cached session vars. This is the code I'm using to cancel their order:
session_unregister($s_name);
session_unregister($s_price);
session_unregister($s_id);
session_unregister($s_qty);
session_unregister($s_total);
session_unregister($s_totalItems);
These are all the arrays that contain their order info, after that they're redirected to the home page which doesn't persist any ongoing sessions. Thus, it SHOULD wipe out their order.
But it doesn't?!?!?!
HELP!!!