Magento 会话创建会破坏其他会话变量
我使用 Mage::getSingleton("customer/session") 能够从外部登录到 Magento。问题是,这似乎清除了我设置的其他 $_SESSION 变量。
我怎样才能拥有整个蛋糕并能够登录 Magento 并设置正常的 SESSION 变量?
I am using Mage::getSingleton("customer/session") to be able to login to Magento externally. Problem is, this seems to clear up other $_SESSION variables I have set.
How can I have the entire cake and be able to login to Magento plus setting normal SESSION-variables?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这个答案可能也适用于您: Magento 外部登录不会创建会话cookie
本质上,在创建其他会话之前尝试先创建 Magento 会话。
如果这没有帮助,您可能需要提供额外的代码,以便提供一个好的答案。
I assume this answer might apply to you also: Magento external login will not create session cookie
In essence try first creating the Magento session before you create the other session.
If that doesn't help you might need to provide additional code so a good answer can be supplied.