On Tue, 20 Mar 2001, Connie Chan wrote:

> Hi,
> 
> I know that we can set the session timeout in web.xml.  But it
> specifies how long the user can have valid session no matter the
> user keeps sending the requests.  Correct?  If so, how about the
> idle session timeout?  By meaning that, if the user does not send
> any request for certain time period (let say 30 minutes), we would
> disable the session.  Does anyone know how to configure?

No, that's not correct.  The session timeout you set in web.xml is the
idle session timeout.  This can be set programmatically as well via
HttpSession.getMaxInactiveInterval()).  (According to the spec, the
setting in the web.xml file is in minutes, the argument to
getMaxInactiveInterval() is in seconds.)

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]

Reply via email to