|
@@ -118,13 +118,14 @@ class ShiroConfig {
|
|
fun defaultWebSessionManager(): ZenWebSessionManager {
|
|
fun defaultWebSessionManager(): ZenWebSessionManager {
|
|
return ZenWebSessionManager().apply {
|
|
return ZenWebSessionManager().apply {
|
|
setCacheManager(redisCacheManager())
|
|
setCacheManager(redisCacheManager())
|
|
- globalSessionTimeout = 1800000
|
|
|
|
|
|
+ globalSessionTimeout = 604800 * 1000
|
|
isDeleteInvalidSessions = true
|
|
isDeleteInvalidSessions = true
|
|
isSessionValidationSchedulerEnabled = true
|
|
isSessionValidationSchedulerEnabled = true
|
|
isDeleteInvalidSessions = true
|
|
isDeleteInvalidSessions = true
|
|
sessionDAO = redisSessionDAO()
|
|
sessionDAO = redisSessionDAO()
|
|
sessionIdCookie = SimpleCookie(ZenHttpSession.DEFAULT_SESSION_ID_NAME).apply {
|
|
sessionIdCookie = SimpleCookie(ZenHttpSession.DEFAULT_SESSION_ID_NAME).apply {
|
|
isHttpOnly = true
|
|
isHttpOnly = true
|
|
|
|
+ maxAge = 604800
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|