duande1146 2019-06-04 15:05
浏览 59
已采纳

保存后丢失Magento客户会话

I've updated to the latest Magento 1 release (1.9.4.1) and I've noticed that whenever I edit my details, after logging in, the session is recreated and I am redirected to the home page. has anyone else experienced this issue, or know how to resolve it?

I've tried disabling all modules (local and community), but the problem still remains.

I've also installed a blank version of Magento, but I get the same results.

Steps to reproduce:

  1. Log in to a customer account from the frontend
  2. Navigate to account information page (customer/account/edit/)
  3. Save account

Repeat the above steps a couple of times and eventually the session is disregarded and a new session is created in var/session, which results in redirect to home page.

  • 写回答

1条回答 默认 最新

  • dqpwdai095465 2019-06-05 08:51
    关注

    After some digging, I have finally found the solution!

    Using Xdebug, I placed a breakpoint within the validate method inside app/code/core/Mage/Core/Model/Session/Abstract/Varien.php, specifically line 489. I recalled some time back that this line gave me some bother and that there was a patch releases to fix the issue. The session was always invalidating, hence the new session creation and kick to home page.

    enter image description here

    Once I compared this file to my master branch, I noticed that line 487 was the problem!

    It looks like Patch 10570 has not been applied in this Magento version. My solution was to copy this file to the local code pool and make the change there.

    I hope this info proves useful for someone!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀