Apache - Tomcat How to use session ID to confirm an active user session?
Apache – Tomcat
We have a webapp which includes a MySQL log table of the user’s log on and log off activity. If the user closes the webapp by using the webapp “Log Off” button, the webapp will update the MySQL log table with the timestamp of the logoff. If the user closes the browser without using the webapp “Log Off” button the time stamp is not written at exit. We have a maximum idle time for a session; after it expires the webapp session is closed.
We capture the session id in our log file.
Question: Could a program using the session id, check CentOS to see if the session is still active? If this is possible,we could detect expired sessions and then write the logoff time into the webapp log file.
Your comments and suggestions are appreciated.
Last edited by klroller; 10-08-2009 at 06:59 AM.
Reason: Feedback- Recommendation to Edit Title