tags:

views:

774

answers:

2

dear friends, I didn't find how to set the session timeout less than 1 min in BlazeDS, web.xml 's timeout at least 1 min , how can I set the time less than 1 min , thanks a lot.

A: 

You can set the session timeout in the web.xml:

<session-config>
    <session-timeout>1</session-timeout>
</session-config>

However the value is in minutes. So I don't think you can go below 1 minute.

James Ward
You can set the session timeout in codee.g.session.setMaxInactiveInterval(1); // 1 sec
Peter Lee
A: 

You may try HttpSession's setMaxInactiveInterval(), for instance in sessionCreated() method in custom HttpSessionListener (you can specify your listener class in web.xml)

janekw