I’ve just published a little library called
What is it?
PhoenixLiveSession is a drop-in replacement for the default
Plug.Session stores, comes with LiveView integration and Phoenix.PubSub support.
Why did I create it?
My motivation for this was a client project in which I wanted to implement a shopping cart using LiveView.
What does it do?
With PhoenixLiveSession you can use
put_session/3 on your LiveView sockets and receive session updates via
Where can I find it?
You can find the library on Hex:
Contributions on GitHub are welcome:
Also check out the blog article I’ve written about the library with code examples and further insights:
I’m curious to hear what you think!