title: How to configure Spring Session Redis redisNamespace at runtime
body: <p>I'm using Spring Boot 1.3.6 and Spring Session and Redis as the Session store. I need to be able to set the <code>redisNamespace</code> for the application a runtime, and not hard-code it in the code. That means I cannot use <code>@EnableRedisHttpSession</code> since that is not something I can set via the <code>applaction.yml</code> file. </p>
  
  <p>I've updated Spring Session to 1.2.1.RELEASE to get the support I need, but I cannot seem to get the system to configure the namespace via configuration. I tried using a SPEL in the <code>@EnableRedisHttpSession(redisNamespace)</code> call, but that doesn't work. I tried to have the <code>RedisHttpSessionConfiguration</code> injected via <code>Autowired</code> to set it as well, and that seemed to have been ignored. There was also another reference in another SO post about using <code>spring.session.redis.namespace</code> as a property in <code>application.yml</code> but that doesn't work.</p>
  
  <p>Any suggestions/tips would be greatly appreciated!</p>