SpringSide session短时间失效

来源:互联网 发布:安卓刷机软件哪个最好 编辑:程序博客网 时间:2024/04/30 17:22

session失效问题:登陆后发现一两分钟后就失效了,操作网站后自动退出重新登陆界面。

解决:修改超时时间

           ehcache-shiro.xml:

<ehcache updateCheck="false" name="shiroCache">   <defaultCache            maxElementsInMemory="10000"            eternal="false"            timeToIdleSeconds="120"            timeToLiveSeconds="120"            overflowToDisk="false"            diskPersistent="false"            diskExpiryThreadIntervalSeconds="120"            /></ehcache>
修改为:

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xml><ehcache updateCheck="false" name="shiroCache"><!-- http://ehcache.org/ehcache.xml -->   <defaultCache            maxElementsInMemory="10000"            eternal="false"            timeToIdleSeconds="3600"            timeToLiveSeconds="3600"            overflowToDisk="false"            diskPersistent="false"            diskExpiryThreadIntervalSeconds="3600"            /></ehcache>


1 0
原创粉丝点击