HI, I would like to know how to keep track of a browser bacsed cleint when he/she abruptly closes the connection with servlet. Let us say I have a browser based cient and a server running a servlet. I can understand the client logging out if he "logs out". My question is how can the server get notified if the client closes the browser window without logging out. Thansk in advance.
The browser does not notify the server when the user closes the window. Hence we need to depend on the session timeout to invalidate the users session. Another similar approach is to have a thread which will continuously monitor the users sessions (which need to be kept in a list or hashtable) any session that has not been active for a defined time can then be invalidated (after doing any process if necessary).