org.apache.shiro.session.mgt.eis.JavaUuidSessionIdGenerator Java Examples

The following examples show how to use org.apache.shiro.session.mgt.eis.JavaUuidSessionIdGenerator. 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: ShiroSessionProperties.java    From utils with Apache License 2.0 5 votes vote down vote up
public ShiroSessionProperties() {
    globalSessionTimeout = 30 * 60 * 1000L;
    deleteInvalidSessions = true;
    validationInterval = 60 * 60 * 1000L;
    validationSchedulerEnabled = true;
    activeSessionsCacheName = "shiro-activeSessionCache";
    idGenerator = JavaUuidSessionIdGenerator.class;
}
 
Example #2
Source File: ShiroConfig.java    From spring-boot-shiro with Apache License 2.0 2 votes vote down vote up
/**
 * Session ID 生成器
 * <br/>
 * create by: leigq
 * <br/>
 * create time: 2019/7/3 16:08
 *
 * @return JavaUuidSessionIdGenerator
 */
@Bean
public JavaUuidSessionIdGenerator sessionIdGenerator() {
    return new JavaUuidSessionIdGenerator();
}