shiro.ini配置如下
[main] securityManager = xxx.security.UniquePrincipalSecurityManager sessionIdCookie = org.apache.shiro.web.servlet.SimpleCookie sessionIdCookie.name = sid sessionIdCookie.path = / sessionIdCookie.maxAge = 1800 sessionIdCookie.httpOnly = true passwordService = org.apache.shiro.authc.credential.DefaultPasswordService passwordMatcher = org.apache.shiro.authc.credential.HashedCredentialsMatcher passwordMatcher.hashAlgorithmName = md5 shiroDbRealm = xxx.security.ShiroAuthorizingRealm shiroDbRealm.credentialsMatcher = $passwordMatcher securityManager.realms = $shiroDbRealm sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO sessionDAO.activeSessionsCacheName = shiro-activeSessionCache sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager sessionManager.sessionDAO = $sessionDAO sessionManager.globalSessionTimeout = 3600000 sessionManager.sessionIdCookie = $sessionIdCookie sessionManager.deleteInvalidSessions = true sessionValidationScheduler = org.apache.shiro.session.mgt.ExecutorServiceSessionValidationScheduler sessionValidationScheduler.interval = 3600000 sessionManager.sessionValidationScheduler = $sessionValidationScheduler securityManager.sessionManager = $sessionManager cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager cacheManager.cacheManagerConfigFile = classpath:ehcache.xml #cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager securityManager.cacheManager = $cacheManager
undertow.txt配置如下
undertow.session.timeout=3600 undertow.default-session-timeout = 60
可是好像都没有什么效果,感觉都不到30分钟就要重新登录了。请教下类似环境的朋友这个具体怎么配置。
项目:JFinal
各是各的 session