:
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/'));
...
}
然后,在其他客户ontroller的行动中,我从上面的代码重定向,我做:
public function customerChoiceAction()
{
$session = Mage::getSingleton('core/session', array('name' => 'frontend'));
// or $session = $this->_getSession();
$email = $session->getEmail();
// or $email = $session->getData('email');
但是我在结果中得到null,在哪里挖掘和努力解决?谢谢!
答案 0 :(得分:0)
这只是CHROME中的一个问题,在Firefox中,一切正常。