Mnemonix v0.6.3 Plug.Session.MNEMONIX

Stores the session in a Mnemonix.Store.Server.

This store does not create the Mnemonix store; it expects that a reference to an existing store server is passed in as an argument.

We recommend carefully choosing the store type for production usage. Consider: persistence, cleanup, and cross-node availability.

Options

Examples

# Start a named store when the application starts
Mnemonix.Stores.Map.start_link(server: [name: My.Plug.Session])

# Use the session plug with the table name
plug Plug.Session, store: :mnemonix, key: "sid", store: My.Plug.Session

Summary

Functions

delete(conn, sid, store)

Callback implementation for Plug.Session.Store.delete/3.

init(opts)

Callback implementation for Plug.Session.Store.init/1.