I'm using glassfish to host a servlet with login page authentication method over https.
I need that if an user is logged in form somewhere no one should be able to log in using the same credentials until that user session expires or becomes invalidated.
Example: I'm the user A logging from place 1 using user:example password:example1. I don't want an user B in place 2, or in place 1 but from a different pc, to be able to log in using user:example and password:example1, or the user B, by logging in, should invalidate user A session.
Is that possible withouth writing a custom auth module?