• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat HttpSession inactivity

 
Panda Mima
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I know that to change default (30 minutes?) HttpSession expiration time out we put



into web.xml. So with this setting, the user's session will be automatically deactivated after x minutes of inactivity.

My question is: how Tomcat determines this "inactivity"? Does that mean time which user didn't access HttpSession object? or what exactly? Or this user didn't access any server's (okay, application's) page at all, even if page does not use HttpSession?

Please help!
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any hit to the server from that client will be consider activity and will reset the timeout.
 
Panda Mima
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How this "client" is detected? By IP? or how?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65128
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the session id, which is passed in a cookie or as part of the URL (with URL rewriting).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic