【问题标题】:Magento session creation destroys other session variablesMagento 会话创建会破坏其他会话变量
【发布时间】:2012-02-13 15:16:05
【问题描述】:

我正在使用 Mage::getSingleton("customer/session") 从外部登录 Magento。问题是,这似乎清除了我设置的其他 $_SESSION 变量。

我怎样才能拥有整个蛋糕并能够登录到 Magento 并设置正常的 SESSION 变量?

【问题讨论】:

    标签: php magento session-variables


    【解决方案1】:

    我认为这个答案也可能适用于你:Magento external login will not create session cookie
    本质上,在创建另一个会话之前先尝试创建 Magento 会话。

    如果这没有帮助,您可能需要提供额外的代码,以便提供一个好的答案。

    【讨论】:

    • Vinai,这实际上是我正在使用的代码。问题是在使用它时,其他会话变量由于某种原因被清除了。我的 magento 会话被保留,但其他会话被删除。
    • 没关系,实际上已经弄清楚了,是一个隐藏的 session_start 搞砸了。
    猜你喜欢
    • 2012-07-24
    • 2016-02-03
    • 1970-01-01
    • 2015-12-09
    • 1970-01-01
    • 2015-07-02
    • 2013-11-10
    • 2012-07-19
    • 1970-01-01
    相关资源
    最近更新 更多