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]

Reply via email to