Hi, Even if you did this (tried to have the client / browser notify the server / WebApp when it was closing), this would be an unreliable way to track departing users. The browser could crash, the system on which it's running could crash or the network link could fail (especially if it's a dial-in link).
Sessions time out. Use a listener to detect this occurrence and make the necessary adjustment to the application-scope record of currently logged-in users. Here's are some relevant tutorial articles: - <http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html>. - <http://edocs.bea.com/wls/docs70/webapp/app_events.html> - <http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets4.html> Randall Schulz Mountain View, CA USA At 21:47 2002-09-01, Lakshmeenarayana G G wrote: >You can use application scope variable which will hold the logged in users >count. i.e. When ever the user makes a successful log-in, you will update >this application scope counter. And when user log-out again its updated. > >But when user closes the browser window using "x" button on top right >corner, you need to write some script or so to capture this. I am not sure >of this condition. > >Cheers. >L G Goundalkar. =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
