tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: MaxInactiveInterval
Date Fri, 04 Nov 2016 19:06:00 GMT
On 04/11/2016 15:53, Caldarale, Charles R wrote:
>> From: Mark Thomas [mailto:markt@apache.org] Subject: Re:
>> MaxInactiveInterval
> 
>> On 04/11/2016 15:07, André Warnier (tomcat) wrote:
>>> A log message in an application running under Tomcat 8 mentions
>>> the "MaxInactiveInterval" setting, saying that it is a bit
>>> short..
>>> 
>>> I think that I understand the meaning of the setting (the time
>>> for which a session remains valid, even without interactions). 
>>> But where in the webapp context, and under what name, should an 
>>> equivalent parameter be specified ?
> 
>> Set it in web.xml. Same with distributable.
> 
> This really appears to be a problem in the servlet spec (not
> surprising), which mentions the getMaxInactiveInterval() and
> setMaxInactiveInterval() APIs but only vaguely ties them to the
> session-timeout element of session-config.  Tomcat doc does not
> normally describe the nuances of the servlet spec, but something that
> associates the config name with the API might be useful.

To be fair, Tomcat isn't helping here. We used to have these attributes
on the (session) manager but we removed with the expectation that they
would be configured in web.xml. We could have done a better job of
pointing to the expected locations.

I did say "patches welcome" to André but since he is a committer that
should have been "commits welcome" ;)

Mark

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


Mime
View raw message