Tomcat 5.0 config-timeout in seconds??

O

obelix

hello gurus:)
maybe it is a stupid question, but nevertheless I am going to ask it:)
so
is it possible to set the config-timeout in seconds in the web.xml
file?

eg.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
...
<session-config>
<session-timeout>1</session-timeout>
</session-config>
....
</web-app>

This above is in minutes, but I would like it in seconds, eg. 30 (sec)
Is it possible?

thanks in advance, best regards
simon:)
 
A

Andrea Desole

hello gurus:)
maybe it is a stupid question, but nevertheless I am going to ask it:)
so
is it possible to set the config-timeout in seconds in the web.xml
file?

That's a strange question. Why do you want to do it?
Anyway, no, it's not possible. Not directly at least. You will have to
implement a session listener and call setMaxInactiveInterval on every
new session. There you can specify the interval in seconds
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,260
Messages
2,571,038
Members
48,768
Latest member
first4landlord

Latest Threads

Top