Today, a customer said that its magento 1.6 Background could not be logged on. It took a long time to find a solution. This was found on the Internet. I hope my friends can refer to this problem.
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 (
'Lifetime' => $ cookie-> getLifetime (),
'Path' => $ cookie-> getPath (),
'Domain '=> $ cookie-> getConfigDomain (),
'Secure '=> $ cookie-> isSecure (),
'Httpponly '=> $ cookie-> getHttponly ()
);
If (! $ CookieParams ['httpponly ']) {
Unset ($ cookieParams ['httponly ']);
If (! $ CookieParams ['Secure ']) {
Unset ($ cookieParams ['Secure ']);
If (! $ CookieParams ['domain ']) {
Unset ($ cookieParams ['domain ']);
}
}
}
If (isset ($ cookieParams ['domain ']) {
$ CookieParams ['domain '] = $ cookie-> getDomain ();
}
// Session cookie params
$ CookieParams = array (
'Lifetime' => $ cookie-> getLifetime (),
'Path' => $ cookie-> getPath (),
// 'Domain '=> $ cookie-> getConfigDomain (),
// 'Secure '=> $ cookie-> isSecure (),
// 'Httpponly '=> $ cookie-> getHttponly ()
);
/*
If (! $ CookieParams ['httpponly ']) {
Unset ($ cookieParams ['httponly ']);
If (! $ CookieParams ['Secure ']) {
Unset ($ cookieParams ['Secure ']);
If (! $ CookieParams ['domain ']) {
Unset ($ cookieParams ['domain ']);
}
}
}
If (isset ($ cookieParams ['domain ']) {
$ CookieParams ['domain '] = $ cookie-> getDomain ();
}
*/