更新时间:2023-11-29 21:23:16
前往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!!!