antikythera v0.2.0 Antikythera.Plug.Session View Source
Plug to automatically load/store session information using a specific session store. Uses cookie store by default.
Usage
Adding the following line in a controller module enables this plug:
plug Antikythera.Plug.Session, :load, [key: "12345678"]
Then,
- session values are loaded from cookie before controller action is executed, and
- session values are stored into cookie after controller action is executed.
Link to this section Summary
Link to this section Functions
Link to this function
load(conn, opts)
View Source
load(Antikythera.Conn.t(), Keyword.t(String.t() | atom())) :: Antikythera.Conn.t()