I'm using httpclient to get data from a server which sets a cookie. The cookie is stored in a CookieStore specified by me in the http context. If I have a global CookieStore I can retain the cookies as long as my application/process is running.
How do I retain cookies for a longer period of time? I can't find any methods that allows me to save the CookieStore to the filesystem. I have searched a lot but didn't find a solution.