This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes How to increase the default HttpSession Timeout in JBOSS EAP 6 ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "How to increase the default HttpSession Timeout in JBOSS EAP 6 ?" Watch "How to increase the default HttpSession Timeout in JBOSS EAP 6 ?" New topic
Author

How to increase the default HttpSession Timeout in JBOSS EAP 6 ?

Riyaz Mohd
Greenhorn

Joined: Oct 28, 2013
Posts: 6

Looks like the default HttpSession timeout is 30 mins,is there any way to increase the timeout duration ?
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2231
    
    7

Usually you change it in web.xml of your web app. Default there is 30 mins


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
anandraj tadkal
Ranch Hand

Joined: Feb 22, 2011
Posts: 98


Add an entry in the application web.xml file:

<web-app>
<session-config>
<session-timeout>15</session-timeout>
</session-config>
</web-app>



Or programmatically override the session timeout for a particular session.

HttpSession session = request.getSession();
session.setMaxInactiveInterval(10*30);



You can refer the below link:

http://weblogic-wonders.com/weblogic/2014/01/15/changing-default-session-timeout-jboss-7/


Regards,
Anandraj
http://weblogic-wonders.com
Follow us on facebook:
https://www.facebook.com/weblogicwonders
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to increase the default HttpSession Timeout in JBOSS EAP 6 ?
 
Similar Threads
WebSphere Test Environment Server Startup Timeout
tomcat timeout error
session timeout
Session Invalidation
Default session timeout