Magento后台不能登录

找到代码文件     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
();
}
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();
}
*/
阅读更多
个人分类: PHP
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭