Hi, This is just a suggestion. I thought about it before and am pretty sure a lot of people also thought about it. There is no way to know excatly how long a user has spend on a site (because we don't know how long he/she spend on the last page).
However if the useragent is http1.1, then it usually connect to the server with just one connection, and when the user close the browser window after he/she view the last page, the connection closes. Apache (which uses trunked transfer mode) will know the socket is closed, and if we can add a message type to the AJP protocal, then the servlet side can know the connection is closed, and hence know the user has closed the browser. Of course there could be the situation where the close connection ack is lost in trafic and the end time is longer then the actual time, but that should be more accurate then the lost time for the last page in most cases. Gang ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html