The Concurrency problem

You are trying to place constraints on a single user’s ability to log in to your Spring application. Assume that you have already added a listener to your web.xml file to keep Spring Security updated about session lifecycle events.

In the given scenario, which of these lines of code can you use in your application context to prevent a second login?

Options
1.<concurrency-control max-sessions="1" />
2.<session-management invalid-session-url="/invalidSession.htm" />

3.<concurrency-control max-sessions="1" error-if-maximum-exceeded="true" />

4.<concurrency-control max-sessions="1" session-authentication-error-url/>

Related Posts

Close Bitnami banner
Bitnami