更新时间:2023-11-30 12:42:52
我建议检查 Magento 设置的 cookie 的路径.最有可能的是,它被设置为 /shop
,因此 cookie 将无法被它上面的文件访问.
I would recommend checking the path of the cookie that Magento sets. Most likely, it is set to /shop
, so the cookie will not be accessible to your file above it.
您可以在System->下的控制面板中修改Magento用来设置其cookie的路径.配置 ->Web(在一般标题下)->会话cookie管理