title: @EnableRedisHttpSession + Spring Boot ignoring server.session.timeout on application.yml
body: <p>I have a project with <strong>Spring Boot 1.3.3</strong> [another stuff] and <strong>Redis</strong> configurated to manage sessions, i.e., <strong>@EnableRedisHttpSession</strong>. The application works well and stores the information on Redis regularly. 
  The problem that I'm facing is that, different from what documentation says, whether I define or not a <em>server.session.timeout</em>, the Redis always is using the default value for its annotation attribute (<strong>maxInactiveIntervalInSeconds</strong>) that is: <strong>1800</strong></p>
  
  <p>Here, the documentation that I followed: <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-session.html" rel="noreferrer">http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-session.html</a></p>
  
  <p>I've also tried the approach defined by @rwinch here <a href="https://github.com/spring-projects/spring-session/issues/110" rel="noreferrer">https://github.com/spring-projects/spring-session/issues/110</a> but also without success.</p>
  
  <p><strong>Updating ......</strong></p>
  
  <hr>
  
  <p>My configuration file as requested:</p>
  
  <pre><code>#First attempt (server.session.timeout) following the Spring documentation mentioned
  server:
     session:
       timeout: 10  
  spring:
     #session timeout under spring (as mentioned by M Deinum in comment - unfortunately doesnt work)
     session:
       timeout: 10
     redis:
       host: 192.168.99.101
       port: 6379
  </code></pre>
  
  <p>Beside that, I've also tried to implement a SessionListener that was in charge of setting the timeout (something like this):</p>
  
  <pre><code>    public class SessionListener implements HttpSessionListener {
          @Value(value = "${server.session.timeout}")
          private int timeout;
          @Override
          public void sessionCreated(HttpSessionEvent event) {
              if(event!=null &amp;&amp; event.getSession()!=null){
                  event.getSession().setMaxInactiveInterval(timeout);
              }
          }
  ...
  </code></pre>
  
  <p>It still didn't result in a correct scenario. I'm really racking my brain :|</p>
  
  <hr>
  
  <p>Please guys, am I missing some point? Does anyone else have faced it?</p>
  
  <p>Thanks in advance.</p>