Today a customer said that his magento 1.6 background could not be logged in. It took him a long time to find a solution. I found it online. I hope friends who have the same problem can refer to it.
magento 1.4.x stable has a problem on the login procedure on localhost.
you need to change in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php tutorial
// session cookie params
$cookieParams = array(
unset($cookieParams['secure']);
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure( ),
'httponly']);
if (!$cookieParams['secure']) {if (!$cookieParams['domain']) {
($cookieParams['domain'])) {
$ cookieParams['domain'] = $cookie->getDomain();
}with
// session cookie params
;getLifetime(),
'path' => $cookie->getPath(),
; // 'domain' => $cookie->getConfigDomain(),
// 'secure ' $cookie-> ['httponly']) {}
}
if (isset ($cookieParams['domain'])) {