Magento 管理员登录不适用于 Chrome,但适用于 Firefox [英] Magento admin login not working in chrome but works fine for firefox

查看:24
本文介绍了Magento 管理员登录不适用于 Chrome,但适用于 Firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是 magento 的新手.我已经在我的本地主机上安装了 magento.在我使用管理页面登录时的所有设置之后,即使使用正确的用户名和密码,我也无法在 chrome 浏览器中登录.但是当我尝试在 Firefox 中登录时没有问题.那么这里真的有人能帮我解决问题吗?

I am just a newbie to the magento. I have installed magento on my localhost. After all the setup when I used the admin page to login I can't able to login in chrome browser even with my right username and password. But when I am trying to login in firefox there is no problem. So can some one really help me here to solve the problem?

推荐答案

我认为 chrome 浏览器的 session cookie 存在问题.所以只需通过这个目录/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php 文件并在 magento 中注释掉从 85 到 92 的行(我的情况是 1.7.2).像这样

I think there is the problem with session cookie with the chrome browser. So just go through this directory /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and comment out the line from 85 to 92 in magento (1.7.2 for my case). Like this

    // session cookie params
   /* $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath(),
        'domain'   => $cookie->getConfigDomain(),
        'secure'   => $cookie->isSecure(),
        'httponly' => $cookie->getHttponly()
    );
  */

之后尝试从您的后端登录.希望您可以使用chrome登录.这肯定会帮助你.如果您仍然遇到问题,请回复我.

after that try to make login from your backend. Hopefully you can make login with chrome. This will definitely help you. If you are still facing the problem then just reply me.

这篇关于Magento 管理员登录不适用于 Chrome,但适用于 Firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆