I go through the Phoenix Guide on Sessions . It explains very well how I can bind data to a session using put_session and retrieve the value later using get_session , but it does not show how I can delete a user session.
From the manual:
defmodule HelloPhoenix.PageController do use Phoenix.Controller def index(conn, _params) do conn = put_session(conn, :message, "new stuff we just set in the session") message = get_session(conn, :message) text conn, message end end
source share