tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Einfeldt" <ralph.einfe...@uptime-isc.de>
Subject AW: Session Length
Date Wed, 28 Nov 2001 16:23:11 GMT
To set the minimal time to live for a session, you can
use any of the following:

in web.xml:

<session-config>
  <session-timeout>30</session-timeout>    <!-- 30 minutes -->
</session-config>

In your JSP or servlet:

session.setMaxInactiveInterval(30); 

P.S.: Remember that this is just the minimal age
for a session. It can last much longer, if there
is some user activity in the session. (The time
you can set, is just the minimal time between the
last action in a session and the end of the second)

> -----Urspr√ľngliche Nachricht-----
> Von: Kirsten.Gloeer@asknet.de [mailto:Kirsten.Gloeer@asknet.de]
> Gesendet: Mittwoch, 28. November 2001 16:15
> An: tomcat-user@jakarta.apache.org
> Betreff: Session Length
> 
> 
> Hi,
> 
> We'd like to set the length of a session tracking session. Is 
> it possible
> to set the length?
> 
> regards,
> Kirsten Glöer
> 
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> 
> 
> 

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message