Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between spring httpsession and tomcat session

Is there any difference/correlation between spring httpsession and Tomcat session?

I have read Tomcat documentation but still I don't understand how it is related to deployed web apps.

like image 673
itpr Avatar asked May 05 '26 11:05

itpr


1 Answers

No , they refer to the same things. You can think that Tomcat is responsible for creating and managing the actual session instance.

When a web app deployed on Tomcat need to access the session , it will ask Tomcat to give it by HttpServletRequest#getSession().

like image 90
Ken Chan Avatar answered May 08 '26 03:05

Ken Chan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!