Call setMaxInactiveInterval(-1) for your session.
You can recognize closing a browser over JavaScript in some cases and send a request 
to close the session. Call invalidate() in this case.

Dmitry R., [EMAIL PROTECTED]
Chief Architect, MetricStream.COM
Santa Clara, CA






-----Original Message-----
From:    Peter Dai [EMAIL PROTECTED]
Sent:    Thu, 8 Mar 2001 10:56:11 -0800
To:      [EMAIL PROTECTED]
Subject: How to control session timeout?


I am using Tomcat 3.2.1.  For one application, I need very long session
timeout, so all the JSPs involved will be able to 
access the java bean what has session scope. I would like the session
invalidated only by closing the browser.

I tried to set timeout in web.xml to a very long value,
<session-config>
        <session-timeout>
            360
        </session-timeout>
</session-config>

Please let me know what else I need to do.

Configuration:  Apache + Tomcat + mod_jk + ajp13. No load balancing.

Thanks,

Peter Dai

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




___________________________________________________________________________
Visit http://www.visto.com/info, your free web-based communications center.
Visto.com. Life on the Dot.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to