permaculture playing cards*
The moose likes Tomcat and the fly likes Session timeout - Apache overriding Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Session timeout - Apache overriding Tomcat?" Watch "Session timeout - Apache overriding Tomcat?" New topic
Author

Session timeout - Apache overriding Tomcat?

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

The session timeout we have set for our application in Tomcat is 90 minutes, however session times out very quickly. When I did dig deeper, I found that Apache's timeout is 300 sec (5 mins) and I think the session timeout I experienced was similar.

I use Tomcat as my standalone server on my local machine and 90 mins timeout works fine on it. However, the live server we have uses Tomcat as plug-in and Apache as web-server -- only Java code is served by Tomcat, static files are served by Apache. I thought (or I have read before?), the Tomcat session timeout (configured in context's web.xml) will override the Apache default session timeout, but it doesn't see so - what could be the reason? Do I need to change Apache's session timeout as well?

Any pointers, help would be highly appreciated!
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
Why not change the timeout for Apache and check it out??

You may have to do decision making if Apache on live-server would be good or on configuring one on local, because i understand as per process developer can not access live-server.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

I do not have access to apache configuration to check this out.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session timeout - Apache overriding Tomcat?
 
Similar Threads
Session Timeout between different web applications
Request Timing out in weblogic 8.1
Websphere session timeout issues
Integrating Tomcat With Apache
session-timeout doesn't work in JBoss - why not?