muthiahmerchant
asked on
time out between sessions
Hi Experts
we have a web application which on our local machine is set to time out after 30 minutes. but when the same application was installed on our clients machine it times out in 3 to 5 minutes. any ideas as to why this might be happening.
Thanks
we have a web application which on our local machine is set to time out after 30 minutes. but when the same application was installed on our clients machine it times out in 3 to 5 minutes. any ideas as to why this might be happening.
Thanks
ASKER
its set to 120 right now
1) check suggested by shivaspk is whether the web.xml is having correct session-timeout value.
2) do u use on session level HttpSession.setMaxInactive Interval(i nt interval) ?
3) moreover ur application does have web.xml of it's own OR it is using default of tomcat/conf
2) do u use on session level HttpSession.setMaxInactive
3) moreover ur application does have web.xml of it's own OR it is using default of tomcat/conf
check the value getMaxInactiveInterval() in any of your JSP. and see its value it must give 1800 for 30 mins.
ASKER
its a struts application and hence each application has its own web.xml. Also, What happened at the client is not happening when we try to login into the clients server and try it. Basically we are unable to reproduce the error.
ASKER
the client machine is using a load balancer. do you guys think that could be an issue, cause the timming out is happening very randomly, sometimes its good for 20-25 minutes,
ASKER
The issue was due to load balancing of two servers and not in the code. Thanks for your help. I am going to ask community support to close this question.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<session-timeout>240</sess
</session-config>
check how much is the value b/w those tags in your web.xml.
and if less set it to appropriate value.