title: Spring Security concurrent session control max-session in Cluster Environment
body: <p>I am using Spring framework 4.0 Release version, along with Spring Security 3.2 Release version. I came across a situation where it is required to use feature to restrict number of active session of a same user id. By reading Spring Security document, I learned that Spring Security provides <a href="http://docs.spring.io/spring-security/site/docs/3.2.0.RELEASE/reference/htmlsingle/#concurrent-sessions" rel="nofollow">this</a> type of feature. I've tried implementing it that way. It is working fine (on single system). I've used custom UserDetailsService class with custom UserDetails class.</p>
  
  <p>Now a question arise is that, how can I achieve this behavior in clustered environment? I am having a cluster environment with sticky session mechanism.</p>