Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

179
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda