参考http://www.right.com.cn/forum/thread-261702-1-1.html
vim /home/ihid/chaos_calmer/feeds/luci/modules/luci-base/root/etc/config/luci
修改sessiontime为自定义数值:
config internal sauth
option sessionpath "/tmp/luci-sessions"
option sessiontime 3600
修改/home/ihid/chaos_calmer/feeds/luci/themes/luci-theme-violet/luasrc/view/themes/violet/header.htm文件(取决于你用的是哪个主题),在里面添加一个js函数解决问题 :
<script>
var lastTime = new Date().getTime();
var currentTime = new Date().getTime();
var timeOut = 20 * 60 * 1000;
window.onload=function (){
window.document.onmousemove=function(){
lastTime = new Date().getTime();
}
};
function testTime(){
currentTime = new Date().getTime();
if(currentTime - lastTime > timeOut){