关闭

Magento后台不能登录

3350人阅读 评论(0) 收藏 举报

找到代码文件     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();
}
*/
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:316516次
    • 积分:3717
    • 等级:
    • 排名:第8697名
    • 原创:64篇
    • 转载:15篇
    • 译文:0篇
    • 评论:40条
    文章分类
    最新评论