Spring security provides a mechanism to control and limit the maximum number of single-user open sessions.

For example, Netflix limits the number of screens you can watch at the same time according to your subscription plan. In part 1, we will understand how this mechanism works, how to use it, and being aware of the default spring security implementation limitations.

If you are familiar with Spring Boot and Spring Security you can build your own test project, if not you can follow the steps described in this post: Spring Security 4 for Spring MVC Using Spring Data JPA and Spring Boot.

Related Articles