在Codeigneiter中访问magento会话变量


Access magento session vars in Codeigneiter

我是Magento的初学者。所以magento是否支持这个功能可能不是一个正确的问题。我正在建立一个网站结构与帮助magento和编码器在同一环境。我的要求是在我的框架中获得magento的会话详细信息,因此这是可能的或不与magento +自定义框架脚本。

Magento会话由会话类处理。在会话中设置新的变量和值

Mage::getSingleton("core/session")->setYourVariableName("your value here"); 
// set your own session variable name in CamelCase. 
//eg. you want to set author_name variable than use setAuthorName("value here") 

我建议你通过参考:https://ellislab.com/codeigniter/user-guide/libraries/sessions.html在付钱之前好好研究一下。