Aino.Session.EncryptedCookie (aino v0.6.0)
Session implementation using cookies as the storage
Link to this section Summary
Functions
Parse encrypted session data from cookies.
Response will be returned with one new Set-Cookie
headers with the session data as a JSON encoded, encrypted, base64 encoded string
Link to this section Functions
Link to this function
decode(config, token)
Parse encrypted session data from cookies.
Can only be used with Aino.Middleware.cookies/1
and Aino.Session.config/2
having run before.
Requires the :key set in the :config map to be exactly 256 bits (32 bytes).
Adds the following keys to the token [:session]
Link to this function
encode(config, token)
Response will be returned with one new Set-Cookie
headers with the session data as a JSON encoded, encrypted, base64 encoded string