On 05/06/07, Mansour <[EMAIL PROTECTED]> wrote:
I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ?
Implement an HttpSessionListener. The destroy() method will be invoked by the servlet container when the session ends. You should be aware that unless you have some means of detecting when the browser closes or the user navigates away from your site and you destroy the session yourself, the destroy() method will not called until the session times out. Regards Roger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]