Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with setMaxInactiveInterval()  RSS feed

 
John Sisco
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
 
Adeel Ansari
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!