Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Riyaz Mohd
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Looks like the default HttpSession timeout is 30 mins,is there any way to increase the timeout duration ?
 
K. Tsang
Bartender
Posts: 3457
14
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually you change it in web.xml of your web app. Default there is 30 mins
 
anandraj tadkal
Ranch Hand
Posts: 98
Oracle Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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/

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic