Magento 不同浏览器后台登录及下单问题笔记

作者:Jeen 发布于:2013-4-21 19:42 Sunday 分类:工作笔记

最近N个站都出现了 IE  谷歌浏览器正常但是火狐不行,或者另外的可以 ie不行, 而且之前这种问题都没出现,网站都可以正常运行。

但是碰到这个就得想办法去解决咯,最开始是直接修改了Session的控制代码,类似于最早解决本地安装环境的方法,修改app/code/core/Mage/Core/Model/Session/Abstract/Varian.php文件

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);
 
To this part:
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()

);

 

部分网站经过此修改就没什么问题了。但是三两天之后发现这个修改过的也无效了。再找其他的突破口,将后台有效时间无限扩大,终于在设置成 186400之后  所有浏览器又恢复常态,可以登录了。

但是还是不清楚问题究竟出在什么地方,检查过服务器的时间,也没发现什么端倪。。。  菜鸟又悲哀了。。。

如有高人路过还请指点一二 :-)

标签: magento

发表评论:

©2010-2024 Jeen All Rights Reserved.Powered by emlog 京ICP备15058100号-1