The moose likes Servlets and the fly likes What if no Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "What if no "session-config" element?" Watch "What if no "session-config" element?" New topic

What if no "session-config" element?

viswanath sastry

Joined: May 04, 2003
Posts: 24
Since <session-config> element in web.xml is optional, What will be the session timeout,if we don't have it in web.xml? Will sessions be timed out at all? Or will there be a container specific time out value out of web.xml?
This has not been mentioned in servlet specifications.

Paul Lester
Ranch Hand

Joined: Dec 27, 2002
Posts: 40
The timeout will be container specific. For example, Tomcat uses 30 minutes, as does WebLogic, I believe.

Where Photography meets vision.<br /><a href="" target="_blank" rel="nofollow"></a><br />Please stop by!<br /> <br />SCJP,SCWCD,SCJD,SCEA
I agree. Here's the link:
subject: What if no "session-config" element?
It's not a secret anymore!