Package org.springframework.session

Examples of org.springframework.session.ExpiringSession


        return result;
    }

    @Override
    public void delete(String sessionId) {
        ExpiringSession session = getSession(sessionId, true);
        if(session == null) {
            return;
        }

        String key = getKey(sessionId);
View Full Code Here


        new RedisOperationsSessionRepository(null);
    }

    @Test
    public void createSessionDefaultMaxInactiveInterval() throws Exception {
        ExpiringSession session = redisRepository.createSession();
        assertThat(session.getMaxInactiveInterval()).isEqualTo(new MapSession().getMaxInactiveInterval());
    }
View Full Code Here

    @Test
    public void createSessionCustomMaxInactiveInterval() throws Exception {
        int interval = 1;
        redisRepository.setDefaultMaxInactiveInterval(interval);
        ExpiringSession session = redisRepository.createSession();
        assertThat(session.getMaxInactiveInterval()).isEqualTo(interval);
    }
View Full Code Here

TOP

Related Classes of org.springframework.session.ExpiringSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.