This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes Session timeout is determined by web.xml or weblogic.xml? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Session timeout is determined by web.xml or weblogic.xml?" Watch "Session timeout is determined by web.xml or weblogic.xml?" New topic
Author

Session timeout is determined by web.xml or weblogic.xml?

Solo Chiang
Greenhorn

Joined: Sep 14, 2005
Posts: 18
Hi

I like to know if I have web.xml and weblogic.xml both define the session time out
which file is the one which actually dominate the application session time?
Anyone get an idea?

Using the following as the example, session will be expired in 10 minutes or 40 minutes?

======== web.xml ========
<session-config>
<session-timeout>10</session-timeout>
</session-config>


======== weblogic.xml ========
<session-descriptor>
<timeout-secs>2400</timeout-secs>
<cookie-name>AFSSESSIONID</cookie-name>
<cookie-comment>AFWEB Session Tracking Cookie</cookie-comment>
<persistent-store-type>replicated_if_clustered</persistent-store-type>
<url-rewriting-enabled>false</url-rewriting-enabled>
<encode-session-id-in-query-params>true</encode-session-id-in-query-params>
</session-descriptor>
Solo Chiang
Greenhorn

Joined: Sep 14, 2005
Posts: 18
I found the answer myself,
it is web.xml who take the precedence if both web.xml and weblogic.xml has set the session time out
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session timeout is determined by web.xml or weblogic.xml?
 
Similar Threads
WebLogic 9.2 clustering problem
Weblogic admin console timeout
Lost of sessions
struts login authnentication session process
Session and cookie timeouts ...confusing