If all the attributes are stored in the session then it will destroy itself .. but if you want to clean other stuff not stored in the session they try
To write an HttpSessionListener http://www.java2s.com/Code/Java/Servlets/Servletsessionlistener.htm http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/http/HttpSes sionListener.html Regards Guru -----Original Message----- From: Al Sutton [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:41 To: 'Struts Users Mailing List' Subject: RE: Ending session The server has no way of knowing if the client closes their browser. You'll just have to wait for the session to expire. -----Original Message----- From: Mansour [mailto:[EMAIL PROTECTED] Sent: 05 June 2007 12:34 To: Struts Users Mailing List Subject: Ending session I am saving objects in the session. After the browser closes I would like to clean the remaining junk. How do I achieve this ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]