Reputation: 493
How does cookie based authentication happens once the cookie with JSESSION ID is generated?
Does the server maintains the session ID in some Data base and then for future requests it checks there?
Is there any mapping of user to session id maintained so that the user+jsessionID identifies the user ?Or is it only Jsession ID maintained?
In my code, JSessionID is set up to be same as httprequestServlet sesion ID. How does this session ID generated?
Upvotes: 0
Views: 540
Reputation: 9384
You may want to check out the fine Servlet Specification. Version 3 is not the latest, however the principles never changed. Check out chapter 7 of https://download.oracle.com/otn-pub/jcp/servlet-3.0-fr-eval-oth-JSpec/servlet-3_0-final-spec.pdf?AuthParam=1637010431_ae15081d6634353e73671a4b2e5ad227
Upvotes: 1