Hi,
I'm running the bundled version of JBoss-2.4.4 Tomcat-4.0.1. I'm trying to set the session timeout to 1 minute for testing purposes and am not able to.
I do know that there is an element here:
JBoss-2.4.4_Tomcat-4.0.1\catalina\conf\web.xml
I have tried to change it and it has no effect. I presume this is overriden somewhere with the bundled version.
So I then tried it in the web.xml of my web application with this:
<session-config>
<session-timeout>1</session-timeout>
</session-config>
This also has no effect. The timeout occurs after 30 minutes.
The only way I got this to work is by changing it in my Serlvet such as:
protected Boolean validateSession(HttpServletRequest request) {
Boolean validSession = new Boolean("true");
HttpSession session = request.getSession(true);
session.setMaxInactiveInterval(30);
if (session.isNew()) {
validSession = new Boolean("false");
}
return validSession;
}
So I don't want to change this in my code. This can lead to potential headaches by implementing this accidently in production!!!
Can anyone fill me on the story?
TIA,
Glenn.
Do you solve your problem? Please tell me because I have the same problem in JBoss 2.2.4.
Regards