Spring, Acegi Security, Concurrent Session Controller
Configure the number of sessions/logons a user can process in parallel.
web.xml
Add a HttpSessionEvent Listener to web.xml - session creation, expiration and destroy event publisher, Acegis ConcurrentSessionController will subscribe to and handle the session events
spring-config.xml
Tell the AuthenticationManager that there is a ConcurrentSessionController :
Create a SessionFilter and SessionRegistry:
Activate the session filter at the beginning of the FilterChain:
|