Search in sources :

Example 6 with DefaultWebSessionManager

use of org.apache.shiro.web.session.mgt.DefaultWebSessionManager in project shiro by apache.

the class AbstractShiroWebConfiguration method nativeSessionManager.

protected SessionManager nativeSessionManager() {
    DefaultWebSessionManager webSessionManager = new DefaultWebSessionManager();
    webSessionManager.setSessionIdCookieEnabled(sessionIdCookieEnabled);
    webSessionManager.setSessionIdUrlRewritingEnabled(sessionIdUrlRewritingEnabled);
    webSessionManager.setSessionIdCookie(sessionCookieTemplate());
    webSessionManager.setSessionFactory(sessionFactory());
    webSessionManager.setSessionDAO(sessionDAO());
    webSessionManager.setDeleteInvalidSessions(sessionManagerDeleteInvalidSessions);
    return webSessionManager;
}
Also used : DefaultWebSessionManager(org.apache.shiro.web.session.mgt.DefaultWebSessionManager)

Aggregations

DefaultWebSessionManager (org.apache.shiro.web.session.mgt.DefaultWebSessionManager)6 SessionListener (org.apache.shiro.session.SessionListener)2 EnterpriseCacheSessionDAO (org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO)2 ShiroFilterFactoryBean (org.apache.shiro.spring.web.ShiroFilterFactoryBean)2 SimpleCookie (org.apache.shiro.web.servlet.SimpleCookie)2 Bean (org.springframework.context.annotation.Bean)2 CustomSessionListener (com.cdeledu.core.shiro.listener.CustomSessionListener)1 ArrayList (java.util.ArrayList)1 CacheManager (org.apache.shiro.cache.CacheManager)1 MemoryConstrainedCacheManager (org.apache.shiro.cache.MemoryConstrainedCacheManager)1 EhCacheManager (org.apache.shiro.cache.ehcache.EhCacheManager)1 Cookie (org.apache.shiro.web.servlet.Cookie)1 UU32SessionIdGenerator (org.nutz.integration.shiro.UU32SessionIdGenerator)1 IocBean (org.nutz.ioc.loader.annotation.IocBean)1 LCacheManager (org.nutz.plugins.cache.impl.lcache.LCacheManager)1 RedisCacheManager (org.nutz.plugins.cache.impl.redis.RedisCacheManager)1 InitializingBean (org.springframework.beans.factory.InitializingBean)1 MethodInvokingFactoryBean (org.springframework.beans.factory.config.MethodInvokingFactoryBean)1 ConditionalOnProperty (org.springframework.boot.autoconfigure.condition.ConditionalOnProperty)1 EhCacheManagerFactoryBean (org.springframework.cache.ehcache.EhCacheManagerFactoryBean)1