CookieJar is here to store your cookies
https://hex.pm/packages/cookie_jar
This lib helps with hacking around (building clients/bots to access) websites that rely on cookies to store user status, e.g. auth, page history, etc. It has httpoison and httpotion integration builtin.
Check the docs and source code.