Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Problems with setMaxInactiveInterval()

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

trying to set simple timeout-values for my .jsp-pages, but the setMaxInactiveInterval()-method seems not to be working like I thought it would.

Yes, the session gets timed out eventually, but not in the time I give to setMaxInactiveInterval()-method.

For example, if I set the timeout to 1 second (session.setMaxInactiveInterval(1) , it takes give or take abt. ~minute to time out.

Anyone have had any similar experiences or is there something wrong with my tomcat or something ?

- John
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlet spec said:

The session invalidation will not take effect until all servlets using that session have exited the service method.

this might be your problem.
Message for you sir! I think it is a tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic