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

188
Visualizações
Implementing Authentication using JSessionId

Is it secure to authenticate a user using the JSessionId that the client passes to the server ?

Assume that in a Spring app, we store the jsession id for a user that provided correct credentials while logging in, in a database and we authenticate each subsequent request based on that jsession id.

Does this method provide the same security level of using Java Web Tokens ?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

JWT tokens are cryptographically signed so they are much more difficult to forge compared to session IDs.

Session IDs are generated using a secure random number generator which may be predicable depending on the implementation.

https://news.netcraft.com/archives/2003/01/01/security_advisory_2001011_predictable_session_ids.html

Some more information on why JWT is preferable over session IDs may be found here:

https://stormpath.com/blog/beginners-guide-jwts-in-java

over 4 years ago · Santiago Trujillo 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