Answer the question
In order to leave comments, you need to log in
What are the ways to work with cookies in java?
As part of working with REST, it is required to keep the session and store cookies accordingly.
Question: what is the best way to implement this?
Ideas: use RequestInterceptor to add cookies to requests, and store them in the form of a list directly in memory. Is this a good solution or could it be better?
I found the standard CookieStore type, but I don’t understand how it can be better than the previous method.
Answer the question
In order to leave comments, you need to log in
It is normal practice to keep the session in memory. For example Map
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question