Improve documentation about CookieLocaleResolver vs SessionLocaleResolver [SPR-13505] #18083
In the Reference Documentation, for the section "21.8. Using locales"
Just curious if is possible add a note about when use each approach, advantages and disadvantages for each one.
If exists some relation or impact about "SessionLocaleResolver" for Spring Session and Spring Cloud.
Affects: 4.2 GA
Referenced from: commits 6d36930
Juergen Hoeller commented
I've added a note on SessionLocaleResolver: In contrast to CookieLocaleResolver, this strategy stores locally chosen locale settings in the Servlet container's HttpSession. As a consequence, those settings are just temporary for each session and therefore lost when each session terminates.
There is no direct relationship with Spring Session. Our SessionLocaleResolver will simply evaluate and modify corresponding HttpSession attributes against the current HttpServletRequest.