You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "J. Pérez" <je...@artmediacompany.com> on 2003/04/03 11:19:33 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-4.1.8\webapps\ROOT\WEB-INF and also the web.xml in
C:\jakarta-tomcat-4.1.8\conf and nothing happened (it times out after 30
min ).
Below you can find the web.xml under the WEB-INF.
Any help will be appreciate.
J.Pérez
<?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">
<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>
Jesús Pérez Franco
Tlf: (+34) 913212059 Fax: (+34) 913378822
jesus.perez@artmediacompany.com
Llave pública PGP
Ingeniero en
Informática
Telefónica
Soluciones
Sor Ángela de la Cruz, 3. Planta 1. 28020 Madrid
Re: session expired
Posted by Mariusz Wiktorczyk <ko...@fanthom.math.put.poznan.pl>.
Session timeout is set in Tomcat\conf\web.xml
<!-- ==================== Default Session Configuration
================= -->
<!-- You can set the default session timeout (in minutes) for all
newly -->
<!-- created sessions by modifying the value
below. -->
<session-config>
<session-timeout>30</session-timeout>
</session-config>
J. Pérez wrote:
> Hi,
>
> Can anyone explain in details how do I set the session timeout?
>
> I tried changing the web.xml in
> C:\jakarta-tomcat-4.1.8\webapps\ROOT\WEB-INF and also the web.xml in
> C:\jakarta-tomcat-4.1.8\conf and nothing happened (it times out after
> 30 min ).
>
> Below you can find the web.xml under the WEB-INF.
>
> Any help will be appreciate.
>
> J.Pérez
>
>
> <?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">
> <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>
>
> Jesús Pérez Franco
> Tlf: (+34) 913212059 Fax: (+34) 913378822
> jesus.perez@artmediacompany.com <ma...@artmediacompany.com>
> Llave pública PGP
> <http://usuarios.lycos.es/jperezfranco/public-key.asc> Ingeniero en
> Informática
> Telefónica Soluciones
> Sor Ángela de la Cruz, 3. Planta 1. 28020 Madrid
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org