We have a specific part in our project which sometimes can take a really long time to complete its database operations. This can be worse if we use the database which can be only accessed using a VPN.
I know that you can increase the overall session time with this:
<context-param>
<description>Tempo limite em minutos da sessão do usuário</description>
<param-name>timeout_sessao_web</param-name>
<param-value>20</param-value>
</context-param>
We have this parameter in our web.xml file for a 20 minutes session. I could easly change this value, but i've been told not to.
And i know that there is this:
@Synchronized(timeout = 300000)
That is in every bean. I have some questions:
- Increasing this value, will increase the session time for a specific page, or the value in my web.xml will prevail?
- Is there another way to handle specific session timeouts for some pages, or it's something that affects the whole project?