For some specific reason, I need to add and remove items to the cart programmatically. Functionality appears to work but when I click on other category pages the mini shopping cart still shows old qty unless I click on the mini cart.
I tried different ways like below
$quote = Mage::getModel('checkout/cart')->getQuote();
$cart = Mage::getModel('checkout/cart');