[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

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
0
muthiahmerchant
Asked:
muthiahmerchant
1 Solution
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
   <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.
0
 
muthiahmerchantAuthor Commented:
its set to 120 right now
0
 
fargoCommented:
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


0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
check the value getMaxInactiveInterval() in any of your JSP. and see its value it must give 1800 for 30 mins.
0
 
muthiahmerchantAuthor Commented:
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.
0
 
muthiahmerchantAuthor Commented:
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,
0
 
muthiahmerchantAuthor Commented:
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
0
 
GranModCommented:
Closed, 500 points refunded.
GranMod
The Experts Exchange
Community Support Moderator of all Ages
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now