Persistent logins in Elixir with Expected

1 · Jean-Philippe Cugnet · Jan. 19, 2018, midnight
This article was originally published on Medium. TD;DR I’ve written an Elixir package to enable persistent logins through an authentication cookie, following Barry Jaspan’s Improved Persistent Login Cookie Best Practice. It is available on hex.pm and GitHub. After writing my server-side session store using Mnesia, I found a new problem to solve: how should I manage persistent logins? One solution could be setting the session to exist forever, but this is a bad idea. If someone gets my session co...