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;
}
Aggregations