ecshop登录超时解决办法

2008年10月14日 | 16:22分类:网页设计 | 标签: | 98 views

1 在includes\cls_session.php中修改

“var $max_life_time  = 1440; // SESSION 过期时间”

这段代码中的数字。此数字单位为妙

前台登录和后台登陆都是调用这里设置的时间。

2 关于在后台编辑产品经常由于时间长而超时,可以在登录的时候,勾起“请保存我这次登录信息”就可以不提示超时了,或者直接修改\admin\templates\login.html,,让页面默认选中这一项!

现在的新版本,对安全打高了一些,
几乎是5分钟没有操作后台就重新登陆,
有没有办法可以改掉
因为只有3分钟,所以我们往往在录入过程中就超时了,所以我们需要增加超时时间

修改方法如下:
includes/init.php
api/init.php
admin/includes/init.php
wap/includes/init.php

将以上这几个文件中,
找到下面的代码

@ini_set(’session.cache_expire’,  180);

将的  180  (三分钟) 修改为自己希望的值,例如我修改为

@ini_set(’session.cache_expire’,  600);   //10分钟。

如果还不行就请回帖告诉我。

发表您的评论

您的名字: (*必填)

您的邮箱: (*不会被公布 ,必填)

您的网站:

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word