Im working in a Web App with Java and JSF. I have a simple login, if it finds the user in the database it creates a session and stores some information on it. That works great. The thing is, I want to avoid two different people using the same user name and password at the same time. Something like account sharing. Only one user logged at one time. I have been thinking this but I can t find the correct approach.
事先感谢你们的所有帮助。