1

in rewrite customer controller, in session, custom var 'email' is set:

if(!empty($customer_data)){

    $session = Mage::getSingleton('core/session', array('name' => 'frontend'));
    // or $session = $this->_getSession();
    $session->setEmail($email);
    // or  $email   = $session->setData('email', $email);
    Mage::getSingleton(‘core/session’)->setMySessionVariable($email); 
    $this->_redirectSuccess($this->_getUrl('*/*/customerChoice/'));

    ...

    }

then, on other customer controller's action, in which i redirect from the code above, i do:

public function customerChoiceAction()
{
    $session = Mage::getSingleton('core/session', array('name' => 'frontend'));
    // or $session = $this->_getSession();

    $email   = $session->getEmail();
    // or  $email   = $session->getData('email');

but i get null in result, where to dig and hove to solve? thanks!

UPDATE

THIS WAS ONLY GOOGLE CHROME ISSUE, IN FIREFOX EVERYTHIG IS OK

0

Please try bellow code:

Data set in session

Mage::getSingleton('core/session')->setAbcemail('xyz@gmail.com');

Data get in session

Mage::getSingleton('core/session')->getAbcemail();
0

You can get it using,

 Mage::getSingleton(‘core/session’)->getMySessionVariable();

Try above method.

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.