posted 17 years ago
Thanks for the quick reply. I understood the difference between Connection timeout and session timeout. And for your question, in my application I had to do the session expiration check for 20 min and there should be a 5 min warning before the session expires. I took care of all these things. But without providing the session-timeout entry in my application's web.xml, when i tried to print the HttpSession's getMaxInactiveInterval() it printed the 1800 value because of the tomcat's conf/web.xml session-timeout entry (30 min). So, according to your reply, if we have to have the session expiry handling for any application,
1. either we have to provide that in that application's web.xml or set it in the tomcat's conf/web.xml
2. and we have to set the conf/server.xml's ConnectionTimeout to be the same (or more) in milliseconds. (because when i try to set this to less than the above one, say 10000 ms, and when i do not do anything in an opened session of my application for 10 minutes and then I make a request, it logs me out...)