PlugDbSession - store your sessions in the database

PlugDbSession is exactly as it sounds, a database session store for plug! Benefits include getting rid of the cookie size limit, revoking sessions remotely, and being able to store any valid elixir value.

GitHub:

Hex:
https://hexdocs.pm/plug_db_session/readme.html

There are not many fancy code snippets to show off in here since it is simply a driver, so be sure to checkout the readme for how it is used.

It uses cloak to encrypt the cookie as well as the session data in the database.

This is the first package I have built that exposes config options to the end user, I was mostly just copying how other packages seem to do it but let me know if there is a better way :smile:

6 Likes