I have a function that I call with ?clear-cart appended to the end of my page; as you can probably guess, this function clears the user\'s cart.
?clear-cart
I call it l
You could clear the cart and then immediately redirect using header (obviously before any output!).
See the PHP reference manual for more details.