You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Ziggi Zukerman, Nice-Eye" <zi...@nice-eye.com> on 2001/03/14 14:19:52 UTC

session expired

Hi,
 
Can anyone explain in details how do I set the session timeout?
 
I tried changing the web.xml in C:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF
and also the web.xml in C:\jakarta-tomcat-3.2.1\conf and nothing happened
(it times out after 30 min ).
Trying to set it in the app. by session.setMaxInactiveInterval(int seconds)
didn't help.
Below you can find the web.xml under the WEB-INF.
 
Any help will be appreciate.
 
Ziggi
 
 
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    " http://java.sun.com/j2ee/dtds/web-app_2_2.dtd
<http://java.sun.com/j2ee/dtds/web-app_2_2.dtd> ">
 <web-app>
  <servlet>
 
<servlet-class>com.niceeye.portal.common.StartupServlet</servlet-class> 
          <load-on-startup></load-on-startup>
    </servlet> 
    <session-config> 
           <session-timeout>1 </session-timeout> 
    </session-config>
</web-app>