You may want to look into SessionListener/Session event Listener. I am not
sure what the issue is with regards to the timeout, setting timeout to 30
means the session should expire in 30 minutes. The timeout is really all you
should need as far as wanting to prevent idle sessions, after all that is
what it is for.

On 10/28/06, Oren Livne <[EMAIL PROTECTED]> wrote:

Dear All:

I'm running tomcat 5.5.20 on a redhat 8 linux server (Linux
ruready.utah.edu 2.6.9-42.0.2.ELsmp #1 SMP Thu Aug 17 18:00:32 EDT 2006
i686 i686 i386 GNU/Linux).

My web application manages its own session pool. Every time a user logs
into the site, a session is created and stored
in a synchronized map of user ID, session ID. When a user logs out, the
session is invalidated and removed from the map.
When tomcat destroys a session, the user is logged out.

The problem: some times users log in and then close their browser window
(at least I assume so), but tomcat never
destroys their session. The session-timeout parameter is set to 30 in
web.xml. I tried it with session-timeout = 1 on my
windows development box, and then it worked -- tomcat did destroy the
session after it's been idle for 1 minute.

Is it a known linux bug, or is it something in my code? Is there a way
to force sessions to be destroyed without
writing a thread to look for idle sessions every some time and
invalidate them?

Any help would be greatly appreciated.

Thanks,
Oren



--
======================================================================
Oren Livne, Ph.D.
Research Assistant Professor of Mathematics
RUReady Software Architect

Academic Outreach and Continuing Education
1901 East South Campus Dr., Room 2197-D
University of Utah, Salt Lake City, UT 84112-9399
Tel  : (801) 581-6831     Cell: (801) 631-3885     Fax: (801) 585-5414
Email: [EMAIL PROTECTED]              Web:  http://ruready.net/oren
======================================================================


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
   * "Still searching for the gatekeeper to the Valence-Band, let me out of
here!"

"talk trash and carry a small stick."
PAUL KRUGMAN (NYT)

Reply via email to