You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pierre Goupil <go...@gmail.com> on 2007/05/28 08:21:04 UTC

session timeout

Hello all !

I'm using a Tomcat-based authentication. How do you do to set the session
timeout time ? I mean, the time of inactivity after which one the user must
re-login.

I'm using Tomcat 5.5.

Regards,

Pierre


-- 
"Mon horizon était désormais les pétales courbés,
Ma nouvelle demeure resplendissait de flèches d'herbes folles
Et d'oreillers de pollens odorants."

(Naïmah, le philosophe Fémereif)

Re: session timeout

Posted by Pierre Goupil <go...@gmail.com>.
Pretty straight-forward : thanx a lot !

Pierre



2007/5/28, Olivier Bouchereau <ol...@gmail.com>:
>
> Hello Pierre,
>
> Try setting this in your tomcat /conf/web.xml.
> It should work for all the contexts.
>
> <session-config>
>   <session-timeout>60</session-timout>
> </session-config>
>
> (the time is specified in mins)
>
> Or you can set this in a specific webapp web.xml so that it would be the
> only one with a 60 minutes session timeout.
>
> Olivier
>
> Le 28/05/07, Pierre Goupil <go...@gmail.com> a écrit :
> >
> > Hello all !
> >
> > I'm using a Tomcat-based authentication. How do you do to set the
> session
> > timeout time ? I mean, the time of inactivity after which one the user
> > must
> > re-login.
> >
> > I'm using Tomcat 5.5.
> >
> > Regards,
> >
> > Pierre
> >
> >
> > --
> > "Mon horizon était désormais les pétales courbés,
> > Ma nouvelle demeure resplendissait de flèches d'herbes folles
> > Et d'oreillers de pollens odorants."
> >
> > (Naïmah, le philosophe Fémereif)
> >
>



-- 
"Mon horizon était désormais les pétales courbés,
Ma nouvelle demeure resplendissait de flèches d'herbes folles
Et d'oreillers de pollens odorants."

(Naïmah, le philosophe Fémereif)

Re: session timeout

Posted by Olivier Bouchereau <ol...@gmail.com>.
There is a spelling mistake in what i wrote :

<session-config>
  <session-timeout>60</session-timeout>
</session-config>

This should work better i guess ;)

2007/5/28, Olivier Bouchereau <ol...@gmail.com>:
>
> Hello Pierre,
>
> Try setting this in your tomcat /conf/web.xml.
> It should work for all the contexts.
>
> <session-config>
>   <session-timeout>60</session-timout>
> </session-config>
>
> (the time is specified in mins)
>
> Or you can set this in a specific webapp web.xml so that it would be the
> only one with a 60 minutes session timeout.
>
> Olivier
>
> Le 28/05/07, Pierre Goupil <go...@gmail.com> a écrit :
> >
> > Hello all !
> >
> > I'm using a Tomcat-based authentication. How do you do to set the
> > session
> > timeout time ? I mean, the time of inactivity after which one the user
> > must
> > re-login.
> >
> > I'm using Tomcat 5.5.
> >
> > Regards,
> >
> > Pierre
> >
> >
> > --
> > "Mon horizon était désormais les pétales courbés,
> > Ma nouvelle demeure resplendissait de flèches d'herbes folles
> > Et d'oreillers de pollens odorants."
> >
> > (Naïmah, le philosophe Fémereif)
> >
>
>

Re: session timeout

Posted by Olivier Bouchereau <ol...@gmail.com>.
Hello Pierre,

Try setting this in your tomcat /conf/web.xml.
It should work for all the contexts.

<session-config>
  <session-timeout>60</session-timout>
</session-config>

(the time is specified in mins)

Or you can set this in a specific webapp web.xml so that it would be the
only one with a 60 minutes session timeout.

Olivier

Le 28/05/07, Pierre Goupil <go...@gmail.com> a écrit :
>
> Hello all !
>
> I'm using a Tomcat-based authentication. How do you do to set the session
> timeout time ? I mean, the time of inactivity after which one the user
> must
> re-login.
>
> I'm using Tomcat 5.5.
>
> Regards,
>
> Pierre
>
>
> --
> "Mon horizon était désormais les pétales courbés,
> Ma nouvelle demeure resplendissait de flèches d'herbes folles
> Et d'oreillers de pollens odorants."
>
> (Naïmah, le philosophe Fémereif)
>

Re: session timeout

Posted by albrecht andrzejewski <al...@ema.fr>.
Quoting Pierre Goupil <go...@gmail.com>:

> Hello all !
>
> I'm using a Tomcat-based authentication. How do you do to set the session
> timeout time ? I mean, the time of inactivity after which one the user must
> re-login.

You can set the http session-time into the Web.xml file of you webapp:

   <session-config>
         <session-timeout>
             Your_value_in_minutes
         </session-timeout>
     </session-config>

you can set it programmatically to (have a look to the j2ee javadoc)

Goupil, c'est un nom prédestiné pour l'informatique ca ;-)

----------------------------------------------------
Ce message a ete envoye par le serveur IMP de l'EMA.



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org