无法仅为我的系统登录任何Magento商店管理员和前端

时间:2012-03-04 14:02:30

标签: magento-1.5 magento

我无法登录任何magento商店(甚至是magento网站上托管的演示magento商店)。它几天前工作正常,但现在我无法登录,我的工作正在等待。我甚至试图清除我的缓存,但没有发生任何事情。你能帮忙吗?

4 个答案:

答案 0 :(得分:0)

删除var/session中的所有内容并尝试重新登录。

答案 1 :(得分:0)

您使用的浏览器是什么?当我尝试使用Chrome登录时,它无效。然后我尝试登录Opera并且工作正常。

答案 2 :(得分:0)

如果以下情况属实,

  

即使是在magento网站上托管的演示magento商店

然后它表示问题已本地化到您的计算机。也就是说,如果这个位是准确的

  

我没有看到任何错误

则表示您的计算机和/或网络浏览器无法设置任何Cookie。 Magento(与99%的现代Web应用程序一样)使用基于cookie的会话实现,而Magento依赖会话向最终用户显示错误消息。检查浏览器安全设置,或切换到其他浏览器。如果这不起作用,您需要弄清楚为什么您的计算机无法设置cookie。

答案 3 :(得分:-1)

转到magento目录中的app / code / core / Mage / Core / Model / Session / Abstract / Varien.php文件。

找到代码:

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);

并替换为

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

此后保存文件。并清除var->缓存中的所有缓存文件并尝试登录管理员。

我认为它现在会奏效。 感谢