I have a problem with the session management of my applcation deployed in tomcat. in fact, my application allows only one session to a login / password given.
I then add in the database a flag for each user (isConnected).
if the user logs on I set my flag to 1, if he logs off I set my flag to null using a SessionListener.
in a normal scenario,normal connection / disconnection , it works very well, by cons in the case of a disconnection
abnormal (stop the process of the browser or shutdown the machine), I can not detect the end of the session and I have to wait for the TimeOut.
so if the user reconnects, he will be blocked (a session already exists for this account).
I work with Tomcat 5.5, Servlet server side and client side applets.
thank you for your help.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.