magento管理面板不使用Chrome登录,但在Firefox中工作正常 [英] magento admin panel not login using chrome but working fine in firefox

查看:157
本文介绍了magento管理面板不使用Chrome登录,但在Firefox中工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是一个magento的新手。我在我的本地主机上安装了magento。安装后,我试图以管理员身份登录,我无法使用谷歌Chrome浏览器登录,但在Firefox中工作正常。任何人都可以帮助我解决这个问题?
在此先感谢

解决方案

前往app / code / core / Mage / Core / Model / Session / Vargent.php文件在您的magento目录和第88行附近找到下面的代码并注释下面的行

更改

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

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

现在尝试使用您的凭证登录以登录。希望这对您适用!

I am just a new in magento. I have installed magento on my localhost. After installing I tried to login as admin i can't be able to login using Google chrome browser but in Firefox its working fine . Any one can help me to sort out this problem? thanks in advance

解决方案

Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory and around line number 88 find the below code and comment those below lines

Change

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

To

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

And now try to login with your credentials to logged in. Hope that should works for you!!!

这篇关于magento管理面板不使用Chrome登录,但在Firefox中工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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