更新时间:2023-11-30 11:41:34
我建议检查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 -> Configuration -> Web (under the General heading) -> Session cookie management