app\code\core\Mage\Core\Model\Session\Abstract\Varien.php
修改此文件
// 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();
}call_user_func_array(‘session_set_cookie_params’, $cookieParams);
if (!empty($sessionName)) {
$this->setSessionName($sessionName);
}
为
// 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();
// }
Please indicate: 无趣的人生也产生有意思的事件 » Magento网站后台或是前台无法登录的解决方法