You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Channa Puchakayala <ch...@broadcom.com.INVALID> on 2023/10/27 04:07:20 UTC

Need Help : Tomcat 9.0.75 not honoring session timeout configured in tomcat web.xml for FORM Authentication

Hi All,



Tomcat Version : 9.0.75

Operating System: Windows and Linux

Bits: 64



Tomcat 9.0.75 not honoring  session timeout configured in
tomcat/conf/web.xml for FORM Authentication and it is effecting customers.

==========================

   <session-config>

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

    </session-config>

=========================



Verified the Tomcat source code

-        FormAuthenticator overriding above configured session timeout
setting (30 minutes)  with value (120 seconds)

-        As per FormAuthenticator.Java, this change/issue started from
Tomcat Version : 9.0.74 for FORM Authentication and it overwrites the
original session-timeout value

-        This issue/behavior not observed in 9.0.73



Verified the Tomcat documentation

-        Verified the tomcat changelog, there is a fix/change went in
Tomcat 9.0.74 below related to FORM Based Authentication Session @
https://tomcat.apache.org/tomcat-9.0-doc/changelog.html, looks which is
causing this issue.

------------------------------------------------------------------------------------------------------------------------------

Harden the FORM authentication process against DoS attacks by using a
reduced session timeout if the FORM authentication process creates a
session. The duration of this timeout is configured by the
authenticationSessionTimeout attribute of the FORM authenticator. (markt)

-------------------------------------------------------------------------------------------------------------------------



Is it bug ? Could you please help/suggest.



Thanks

Channa

-- 
This electronic communication and the information and any files transmitted 
with it, or attached to it, are confidential and are intended solely for 
the use of the individual or entity to whom it is addressed and may contain 
information that is confidential, legally privileged, protected by privacy 
laws, or otherwise restricted from disclosure to anyone else. If you are 
not the intended recipient or the person responsible for delivering the 
e-mail to the intended recipient, you are hereby notified that any use, 
copying, distributing, dissemination, forwarding, printing, or copying of 
this e-mail is strictly prohibited. If you received this e-mail in error, 
please return the e-mail to the sender, delete it from your computer, and 
destroy any printed copy of it.

Re: Need Help : Tomcat 9.0.75 not honoring session timeout configured in tomcat web.xml for FORM Authentication

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Channa,

On 10/27/23 00:07, Channa Puchakayala wrote:
> Tomcat Version : 9.0.75
> 
> Operating System: Windows and Linux
> 
> Bits: 64
> 
> Tomcat 9.0.75 not honoring  session timeout configured in 
> tomcat/conf/web.xml for FORM Authentication and it is effecting customers.
> 
> ==========================
> 
>     <session-config>
> 
>          <session-timeout>30</session-timeout> // 30 minutes
> 
>      </session-config>
> 
> =========================
> 
> Verified the Tomcat source code
> 
> -FormAuthenticator overriding above configured session timeout setting 
> (30 minutes)  with value (120 seconds)
> 
> -As per FormAuthenticator.Java, this change/issue started from Tomcat 
> Version : 9.0.74 for FORM Authentication and it overwrites the original 
> session-timeout value
> 
> -This issue/behavior not observed in 9.0.73
> 
> Verified the Tomcat documentation
> 
> -Verified the tomcat changelog, there is a fix/change went in Tomcat 
> 9.0.74 below related to FORM Based Authentication Session @ 
> https://tomcat.apache.org/tomcat-9.0-doc/changelog.html 
> <https://tomcat.apache.org/tomcat-9.0-doc/changelog.html>, looks which 
> is causing this issue.


Can you please state clearly what the issue actually is? This is 
documented behavior of Tomcat. There is a well-documented setting that 
you can adjust if necessary.

Are you reporting a problem? If so, it is not clear from your message above.

What test did you perform?
What did you expect to happen?
What actually happened that was different from your expectation?

-chris


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


Re: Need Help : Tomcat 9.0.75 not honoring session timeout configured in tomcat web.xml for FORM Authentication

Posted by Mark Thomas <ma...@homeinbox.net>.
1. Do not cross-post the same question to multiple lists.

2. Do not post the same question multiple times if you don't get an 
answer as quickly as you would like. We all all volunteers here. If you 
want a guaranteed SLA then pick you preferred vendor and pay for support.

Mark


27 Oct 2023 05:07:20 Channa Puchakayala 
<ch...@broadcom.com.INVALID>:

> Hi All,
>  
>
> Tomcat Version : 9.0.75
> Operating System: Windows and Linux
> Bits: 64   
>  
>
> Tomcat 9.0.75 not honoring  session timeout configured in 
> tomcat/conf/web.xml for FORM Authentication and it is effecting 
> customers.
> ==========================
>    <session-config>
>         <session-timeout>30</session-timeout> // 30 minutes
>     </session-config>
> =========================
>  
>
> Verified the Tomcat source code
> -        FormAuthenticator overriding above configured session timeout 
> setting (30 minutes)  with value (120 seconds)
> -        As per FormAuthenticator.Java, this change/issue started from 
> Tomcat Version : 9.0.74 for FORM Authentication and it overwrites the 
> original session-timeout value
> -        This issue/behavior not observed in 9.0.73
>  
>
> Verified the Tomcat documentation
> -        Verified the tomcat changelog, there is a fix/change went in 
> Tomcat 9.0.74 below related to FORM Based Authentication Session @ 
> https://tomcat.apache.org/tomcat-9.0-doc/changelog.html, looks which is 
> causing this issue.
> 
> ------------------------------------------------------------------------------------------------------------------------------
> Harden the FORM authentication process against DoS attacks by using a 
> reduced session timeout if the FORM authentication process creates a 
> session. The duration of this timeout is configured by 
> the *authenticationSessionTimeout* attribute of the FORM authenticator. 
> (markt)
> 
> -------------------------------------------------------------------------------------------------------------------------
>  
>
> Is it bug ? Could you please help/suggest.
>  
>
> Thanks
> Channa
>  
>
>
> This electronic communication and the information and any files 
> transmitted with it, or attached to it, are confidential and are 
> intended solely for the use of the individual or entity to whom it is 
> addressed and may contain information that is confidential, legally 
> privileged, protected by privacy laws, or otherwise restricted from 
> disclosure to anyone else. If you are not the intended recipient or the 
> person responsible for delivering the e-mail to the intended recipient, 
> you are hereby notified that any use, copying, distributing, 
> dissemination, forwarding, printing, or copying of this e-mail is 
> strictly prohibited. If you received this e-mail in error, please 
> return the e-mail to the sender, delete it from your computer, and 
> destroy any printed copy of it.

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