Link to home
Start Free TrialLog in
Avatar of muthiahmerchant
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
Avatar of Siva Prasanna Kumar
Siva Prasanna Kumar
Flag of India image

   <session-config>
       <session-timeout>240</session-timeout>
    </session-config>

check how much is the value b/w those tags in your web.xml.

and if less set it to appropriate value.
Avatar of muthiahmerchant
muthiahmerchant

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.setMaxInactiveInterval(int interval) ?
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.
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.
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,
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
ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial