Well, I must admit, I run Ubuntu myself and I have noticed on a few occasions (after multiple netbeans builds) that the session doesn't get destroyed in a timely manner sometimes. So it is possible that there is an issue but it happens for me very rearly, I don't know whether this is an issue that happens on deployed apps. You can do some "googling" to see if anything comes up. Unless the user remaining logged in poses a security/resource problem, then you probably shouldn't stress over it, idle sessions do eventually get invalidated.
On 10/28/06, Oren Livne <[EMAIL PROTECTED]> wrote:
Hi Edmond, Thanks for your feedback. I am implementing a session listener and a session event with custom sessionCreated() and sessionDestroyed(). Indeed, I thought that the timeout is all I needed, but the point is ... that it doesn't work properly for me on linux. It does on windows. Thanks Oren EDMOND KEMOKAI wrote: > 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] >> >> > > -- ====================================================================== 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!" * "When I was coming up, it was a dangerous world, and you knew exactly who they were. It was us versus them, and it was clear who them was. Today, we are not so sure who the they are, but we know they're there." Poet Laureate G.W Bush (I am not a Bush basher by the way) "talk trash and carry a small stick." PAUL KRUGMAN (NYT)