I am writing a small online quoting system. I want my customers to be able to navigate between several product sections and select things to get quotes for and then upon submission of their "order" enter the info into a database. This is working fine and I'm using setcookie to set my variables so that the navigation between sections will not require passing variables.
After the order submission, I want to delete all these "temporary" variables so the user may start over if so desired. I'm trying to use unset by calling unset($HTTP_COOKIE_VARS[$key]). When I call this on a certain page, the variables appear deleted meaning that isset returns FALSE. However, if I then navigate to other section pages as a customer would when starting another order, the variables are still set. How can I delete these session cookies completely? I've tried $GLOBALS[$key} as well with no success.
About all I've found is that I could destoy the session to delete the variables but since my customer had to enter login info to get to the quoting system, I don't want them to have to enter it again just because I need to clear these variables.
Any ideas or insight?