• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Problems with setMaxInactiveInterval()

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic