Today a customer said it's Magento 1.6 backstage can not log in, find a long time to find a solution, this is found from the Internet, I hope the same problem friends can refer to.
Magento 1.4.x Stable have a problem on the login procedure on localhost.
You need to the change in app/code/core/mage/core/model/session/abstract/varien.php tutorial
Session cookie Params
$cookieParams = Array (
' Lifetime ' = $cookie->getlifetime (),
' Path ' = $cookie->getpath (),
' Domain ' = $cookie->getconfigdomain (),
' Secure ' = $cookie->issecure (),
' HttpOnly ' = $cookie->gethttponly ()
);
if (! $cookieParams [' HttpOnly ']) {
unset ($cookieParams [' httponly ']);
if (! $cookieParams [' secure ']) {
unset ($cookieParams [' secure ']);
if (! $cookieParams [' domain ']) {
unset ($cookieParams [' domain ']);
}
}
}
if (Isset ($cookieParams [' domain ')]) {
$cookieParams [' domain '] = $cookie->getdomain ();
}with
Session cookie Params
$cookieParams = Array (
' Lifetime ' = $cookie->getlifetime (),
' Path ' = $cookie->getpath (),
' Domain ' = $cookie->getconfigdomain (),
' Secure ' = $cookie->issecure (),
' HttpOnly ' = $cookie->gethttponly ()
);
/*
if (! $cookieParams [' HttpOnly ']) {
unset ($cookieParams [' httponly ']);
if (! $cookieParams [' secure ']) {
unset ($cookieParams [' secure ']);
if (! $cookieParams [' domain ']) {
unset ($cookieParams [' domain ']);
}
}
}
if (Isset ($cookieParams [' domain ')]) {
$cookieParams [' domain '] = $cookie->getdomain ();
}
*/
http://www.bkjia.com/PHPjc/444744.html www.bkjia.com true http://www.bkjia.com/PHPjc/444744.html techarticle today a customer said it's Magento 1.6 backstage can not log in, find a long time to find a solution, this is found from the Internet, I hope the same problem friends can refer to. Ma ...