Aino.Session.Flash (aino v0.6.0)
A temporary storage for strings
Primarily to display notices on the next page load, e.g. "Success!" after a POST
Link to this section Summary
Functions
Fetch a key from the loaded flash message
Load flash messages from session storage
Set a temporary flash message
Link to this section Functions
Link to this function
get(token, key)
Fetch a key from the loaded flash message
Can only be used with Aino.Session.Flash.load/1
Link to this function
load(token)
Load flash messages from session storage
Flash messages in the session are deleted after being loaded.
Must be after Aino.Session.decode/1
Link to this function
put(token, key, value)
Set a temporary flash message
Must be after Aino.Session.decode/1