Aino.Session.Cookie (aino v0.6.0)
Session implementation using cookies as the storage
Link to this section Summary
Functions
Parse session data from cookies
Response will be returned with two new Set-Cookie
headers, a signature
of the session data and the session data itself as JSON.
Link to this section Functions
Link to this function
decode(config, token)
Parse session data from cookies
Verifies the signature and if valid, parses session JSON data.
Can only be used with Aino.Middleware.cookies/1
and Aino.Session.config/2
having run before.
Adds the following keys to the token [:session]
Link to this function
encode(config, token)
Response will be returned with two new Set-Cookie
headers, a signature
of the session data and the session data itself as JSON.