I have an observer on the customer login event. I want to redirect the user to the cart page after login.
I have this in my function from my controller:
Mage::app()->getFrontController()->getResponse()->setRedirect('/checkout/cart/'); Mage::app()->getResponse()->sendResponse(); exit;
The fact is that in firefox this code works. In chrome it doesn't. In chrome I always get an empty cart , even if I have products in my cart, just after page refresh I got the items from my cart. What should I change in my code to make this work in chrome too ? Thank you in advance !.