noir.session documentation

Stateful session handling functions. Uses a memory-store by
default, but can use a custom store by supplying a :session-store
option to server/start.

clear!

(clear!)
Remove all data from the session and start over cleanly.

flash-get

(flash-get k)(flash-get k not-found)
Retrieve the flash stored value.

flash-put!

(flash-put! k v)
Store a value that will persist for this request and the next.

get

(get k)(get k default)
Get the key's value from the session, returns nil if it doesn't exist.

put!

(put! k v)
Associates the key with the given value in the session

remove!

(remove! k)
Remove a key from the session

swap!

(swap! f & args)
Replace the current session's value with the result of executing f with
the current value and args.