Google is your answer .....
Set session timeout to be -1 <session-timeout>-1</session-timeout> http://e-docs.bea.com/wls/docs81/webapp/web_xml.html#1017275 Regards Guru ------------------------------------------------------------------------ ----------- Gurumoorthy Raghupathy Email : [EMAIL PROTECTED] Internal Extn : 2337 External Phone : 01483712337 Nielsen Book 3rd Floor Midas House 62 Goldsworth Road Woking Surrey GU21 6LQ Visit us at : http://www.nielsenbookdata.co.uk/ ------------------------------------------------------------------------ ----------- -----Original Message----- From: Darren [mailto:[EMAIL PROTECTED] Sent: 22 March 2007 14:19 To: Tomcat Users List Subject: Re: Session > I am trying to make the session in my java(Tapestry) project only > expire when the browser is closed. HTTP is stateless so the server has no idea what the client is or isn't doing. You could make something to suit your purposes though; - change your session timeout to something small like 5 minutes - at the top of each page add some javascript to make keep-alive style requests to the server every 2 minutes When the user closes the browser there will be a 5 minute delay and the session will expire on the server. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]