title: Limit the total amount of sessions in a Sprint Boot application
body: <p>In our Spring Boot web server, I know how to limit the sessions per user (<code>httpSecurity.sessionManagement().maximumSessions()</code>), but I want to limit the total amount of sessions, to avoid load on the server.</p>
  
  <p>How can this be done?</p>