Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!