Pravin
Pravin

Reputation: 103

JBoss Session Automatically Expire After 30 second

JBoss session automatically expire after 30 second...

Can you tell me, what is the process to extend JBoss session time limit?

Upvotes: 2

Views: 3485

Answers (2)

RahulArackal
RahulArackal

Reputation: 954

In Jboss, session timeout can be increased in two ways, Either for all applications by specifying it in

jboss's web.xml

or application specific by specifying it in

application's web.xml

<session-config>
    <session-timeout>60</session-timeout>
</session-config>

jboss's web.xml location will be different depending on jboss version.

in jboss4 it is

jboss/server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml

in jboss5 it is

deployers/jbossweb.deployer/web.xml

No idea about later version's

Upvotes: 2

Always_Cool
Always_Cool

Reputation: 35

Please try this :

HttpSession session = request.getSession(); 
session.setMaxInactiveInterval(int secs);

and in case your require a full detail, visit the link : http://weblogic-wonders.com/weblogic/2014/01/15/changing-default-session-timeout-jboss-7/

Upvotes: 0

Related Questions