I have read on this site and docs on setting concurrent session control which I did not know Spring handles so well.
Examples: Question 1 Question 2 amongst others....
However I cannot find how to do do so programatically (not application context) in Spring version 4 controller (spring 4 - annotated).
<http>
...
<session-management>
<concurrency-control max-sessions="1" />
</session-management>
</http>
I have read about ConcurrentSessionControlAuthenticationStrategy, ConcurrentSessionControlStrategy, CompositeSessionAuthenticationStrategy but have not been able to implement. What I am trying to do is make sure a user can only log-in once and if someone else logs in with same username it give them an error page.
Appreciate any help or advice...