0

I have a very strange issue that looks related to session.

There are a couple of things not working:

  • If I add a product to the cart, I'm redirect to the cart page but no items
  • If I try to create a new user, I'm redirect back with no message.

I have tried the following code and I expect a message in the frontend but nothing:

public function anyAction()
    {
        $session = $this->_getSession();
        $session->addError($this->__('BLABLABLA'));
        $this->_redirectError(Mage::getUrl('*/*/create', array('_secure' => true)));
    }

That is why I suspect that the problem is related to session.

Any idea ?

0

Cookie cookie cookie !!!

Whenever you face similar issues crosscheck the cookie domain setting.

System->Configuration->Web->General

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.