Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

185
Visualizações
Session expired issue after setting Httponly and secure flags in tomcat web.xml

This happened when I tested the application on an old version of firefox(v42) as it is a requirement. I have enabled the Httponly and secure attributes in web.xml as follows :

<session-config>
        <session-timeout>30</session-timeout>
        <cookie-config>
            <http-only>true</http-only>
            <secure>true</secure>
        </cookie-config>
</session-config>

When I have accessed it with recent versions of firefox/chrome everything works fine. I was able to login and logout without any issue. But when I use an old version of firefox(v42) the session gets expired immediately after I login with my credentials.

What is the reason behind this and is there a workaround solution of mitigating the same on old browser versions?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

As it turns out when I turn on the secure flag for cookie, the cookie will only be valid in case of https requests. An session created through http requests will be discarded and hence the session gets expired soon after I login.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda