我尝试将cookie生存期设置为86400并从magento后端配置其他设置,但仍然不起作用。我尝试清除缓存并以某种方式解决了几分钟的问题,然后它将无法再次工作。请帮忙。
请按如下方式进行配置
转到 admin->system->configuration-> Web -> 会话 Cookie 管理
Cookie Lifetime : 86400
Cookie Domain : .yoursite.com
Use HTTP only : yes
Cookie Path : /
或代码下方评论
转到:Magento 文件夹/应用程序/代码/核心/法师/核心/模型/会话/抽象/变量.php
并注释掉从第 78 行开始的以下内容,如下所示。
/*
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);
*/