Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <security:session-management
  2. session-authentication-strategy-ref="sas" />
  3.  
  4. </security:http>
  5.  
  6.  
  7. <bean id="sas"
  8. class="org.springframework.security.web.authentication.session.CompositeSessionAuthenticationStrategy">
  9. <constructor-arg>
  10. <list>
  11. <bean
  12. class="org.springframework.security.web.authentication.session.ConcurrentSessionControlAuthenticationStrategy">
  13. <constructor-arg ref="clusteredSessionRegistryImpl" />
  14. <property name="maximumSessions" value="1" />
  15. <property name="exceptionIfMaximumExceeded" value="false" />
  16. </bean>
  17. <bean
  18. class="org.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy">
  19. <constructor-arg ref="clusteredSessionRegistryImpl" />
  20. </bean>
  21. </list>
  22. </constructor-arg>
  23. </bean>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement