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.
Related Tutorials/Questions & Answers:
management 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
Sessions in servletsSessions
in servlets What is the use of sessions
The servlet HttpSession interface is used to simulate the concept that a person's visit to a Web site is one continuous series of interactions
ModuleNotFoundError: No module named 'sessions'
ModuleNotFoundError: No module named 'sessions
My Python... 'sessions
How to remove the ModuleNotFoundError: No module named 'sessions
... to install padas library.
You can install sessions
python with following
sessions - JSP-Servlet
sessions how can we maintain sessions
and using that particular session can we perform diffrent bussiness logic of any particular user
Can anyone give me full details of Management
Please see the thread What is management