How to access Magento user's session from outside Magento?

后端 未结 3 1537
慢半拍i
慢半拍i 2020-11-30 08:19

Im trying to access the Magento customer session in another part of my website.

domain.com/shop/ <- Magento
domain.com/test.php

The shop

3条回答
  •  囚心锁ツ
    2020-11-30 08:36

    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.

    You can modify the path that Magento uses to set its cookie in the control panel under System -> Configuration -> Web (under the General heading) -> Session cookie management

提交回复
热议问题