Hi,

Add the following to your web.xml file

<web-app>
  ...
  ...
  ...

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

</web-app>





Best Regards,

Lim Yong How
Software Engineer
Ryeson Security International
180B Bencoolen Street #10-01/02 The Bencoolen Singapore 189648
www.ryeson.com <http://www.ryeson.com>

____________________________________________________________________________
________________________

The information contained in this e-mail message is intended only for the
use of the person or entity to whom it is addressed and may contain
information that is CONFIDENTIAL and may be LEGALLY PRIVILEGED and exempt
from disclosure under applicable laws. If you read this message and are not
the addressee you are notified that use, dissemination, distribution, or
reproduction of this message is prohibited. If you have received this
message in error, please notify us immediately and delete the original
message.
____________________________________________________________________________
__________________



-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Kenny G. Dubuisson, Jr.
Sent: Wednesday, 18 December, 2002 12:11 AM
To: [EMAIL PROTECTED]
Subject: session timeout setting


I have a site written in JSP that uses session info to validate user's
sessions.  I want to change the default timeout of the session from 60 mins
but I'm not sure what is controlling this or how/where to change it.  Here
is more info to help figure this out...if anyone has any ideas I would
greatly appreciate it.

My initial JSP page has a login which, when validated, sets a cookie that
stores the session ID.  Every page thereafter, upon initial load, checks the
current session ID against this cookie and if they don't match, the user is
directed to re-login.  My users want a longer timeout but I'm not sure where
to control this (maybe this question is for the Tomcat list....I just don't
know).

Thanks,
Kenny

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to