Plug.Session
Plug.Session
A plug to handle session cookies and session stores.
The session is accessed via functions on Plug.Conn
. Cookies and session have to be fetched with Plug.Conn.fetch_session/1
before the session can be accessed.
Consider using Plug.CSRFProtection
when using Plug.Session
.
Session stores
See Plug.Session.Store
for the specification session stores are required to implement.
Plug ships with the following session stores: