tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Henderson" <...@metafile.com>
Subject RE: Session timeout setting (URGENT)
Date Fri, 20 Dec 2002 17:47:16 GMT
Mark, nice job!  I have learned a thing or two from your note.  When one (at
least this one) is in a hurry to put together an application, they often
gloss over important details.  Thanks!

-----Original Message-----
From: Mark Eggers [mailto:its_toasted@yahoo.com]
Sent: Friday, December 20, 2002 11:38 AM
To: Tomcat Users List
Subject: Re: Session timeout setting (URGENT)


Ken,

Let me qualify this before giving you a possibility.

I have just started working with Tomcat as a
programmer (I'm mostly a system admin / integrator /
architect).  And as another person on the mailing list
has pointed out, I am not a part of any apache.org
development team.

That said, I thought I would do a little bit of
research on your problem and try to help.

I'm using as a reference "Java Servlet Programming,
Second Edition" by Jason Hunter with William Crawford.

On pages 216-218, session timeout is discussed.  It
appears that the following snippet of xml should be
placed in your web application web.xml file.

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

This sets the session timeout to 60 minutes.  Before
going on, I noticed that the session timeout in the
Tomcat web.xml is set at 30 minutes (at least in my
installation of 4.1.12).  So I am not sure where your
60 minute timeout is coming from.

The book also goes on to say that the session timeout
can be configured individually for a session with
getMaxInactiveInterval() and setMaxInactiveInterval().

The methods take (int) seconds as the argument, not
minutes.

Previous pages (212-216) talk about the session
tracking API and how to manage long term sessions.
The session tracking API section ends on page 229.

In short, there should be something useful in there
that can help you out of your problem.

I hope I've not been too pendantic and that this gives
you enough information to help you solve your problem.

/mde/

just my two cents . . . .

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message