我有一个Magento 1.9.1堆栈,它运行良好,但现在当尝试登录到Magento管理仪表板时,它不会提供类似"用户名或密码不正确"的错误,它只是重新加载登录页面。当我刷新页面时,我会看到仪表板。
非常感谢您的帮助。!
谢谢。
建议我在中评论以下行:
app''code''core''Mage''core''Model''Session''Abstract''Varien.php
/* to solve login issue */
/* if (!$cookieParams['httponly']) {
unset($cookieParams['httponly']);
if (!$cookieParams['secure']) {
unset($cookieParams['secure']);
if (!$cookieParams['domain']) {
unset($cookieParams['domain']);
}
}
}
if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain(); //I have commented these lines
} */
对于下面的一些旧版本,建议在同一文件中使用
$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
//'domain' => $cookie->getConfigDomain()
//'secure' => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()
);