Session Magento丢失会话数据

Session Magento丢失会话数据,session,magento,Session,Magento,我使用以下方法设置一些数据: Mage::getSingleton('core/session')->setData('amprevnext_collection_id',array_value($id)) 它包含一个ID数组 尝试检索数据时 Mage::getSingleton('core/session')->getData('amprevnext\u collection\u id') 它不返回任何值,我通过尝试将core更改为customer来测试, 我还使用了一个$\u会话,作为回报,

我使用以下方法设置一些数据:

Mage::getSingleton('core/session')->setData('amprevnext_collection_id',array_value($id))

它包含一个ID数组

尝试检索数据时

Mage::getSingleton('core/session')->getData('amprevnext\u collection\u id')

它不返回任何值,我通过尝试将core更改为customer来测试,
我还使用了一个
$\u会话
,作为回报,该会话也是空的。

在执行过程中的什么时候设置和检索此数据?请尝试Mage::getSingleton('core/SESSION')->setAmprevNextCollectionId(arra('key'=>'value'));它在加载目录产品后调用,catalog_product_collection_load_after尝试Mage::getSingleton('core/session')->SetAmprevNextCollectionId(array('key'=>'value');在导航到另一页时设置会话后,会话似乎再次被重写,但只是部分重写