There is a web- based application written with JSP/Servlets. We wanted to improve on the design by adding a time-out function. This function would prompt the user(with a dialog box)after 20 minutes of idleness to say that there is 5 minutes left for this session and to click 'ok' to continue with the session. If the user does not click 'ok' he will be kicked out of the application. The definition of idleness is no request/repsonse to or from the server. I was wondering if anybody could give me some optionss on how to implement this. Thank you very much!