org.apache.shiro.web.session.mgt.ServletContainerSessionManager Java Examples

The following examples show how to use org.apache.shiro.web.session.mgt.ServletContainerSessionManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TapestryRealmSecurityManager.java    From tapestry-security with Apache License 2.0 5 votes vote down vote up
public TapestryRealmSecurityManager(Authenticator authenticator, SubjectFactory subjectFactory, RememberMeManager rememberMeManager, final Collection<Realm> realms) {
	super();
	authenticator.setRealms(realms);
	setAuthenticator(authenticator);
	((DefaultSubjectDAO) this.subjectDAO).setSessionStorageEvaluator(new DefaultWebSessionStorageEvaluator());
	setSubjectFactory(subjectFactory);
	setRememberMeManager(rememberMeManager);
	setSessionManager(new ServletContainerSessionManager());
	setRealms(realms);
}
 
Example #2
Source File: ShiroConfig.java    From MeetingFilm with Apache License 2.0 4 votes vote down vote up
/**
 * spring session管理器(多机环境)
 */
@Bean
@ConditionalOnProperty(prefix = "guns", name = "spring-session-open", havingValue = "true")
public ServletContainerSessionManager servletContainerSessionManager() {
    return new ServletContainerSessionManager();
}
 
Example #3
Source File: ShiroConfig.java    From WebStack-Guns with MIT License 4 votes vote down vote up
/**
 * spring session管理器(多机环境)
 */
@Bean
@ConditionalOnProperty(prefix = "guns", name = "spring-session-open", havingValue = "true")
public ServletContainerSessionManager servletContainerSessionManager() {
    return new ServletContainerSessionManager();
}