Ring flash in a cookie, not the Ring session: :session is the user
module's database session. Unsigned, since only toast text is read back.
Ring flash in a cookie, not the Ring session: `:session` is the user module's database session. Unsigned, since only toast text is read back.
(wrap-flash handler)(wrap-flash handler {:keys [secure?] :or {secure? true}})Carries a response's :flash to the next request. Runs inside wrap-cookies.
A flash is read once: the request that brings it clears the cookie, unless
its response sets a new one or is a redirect without a :flash, which
renders nothing. :secure?, default true, marks the cookie Secure, as
:secure-cookies? does the auth cookies.
Carries a response's `:flash` to the next request. Runs inside wrap-cookies. A flash is read once: the request that brings it clears the cookie, unless its response sets a new one or is a redirect without a `:flash`, which renders nothing. `:secure?`, default true, marks the cookie Secure, as `:secure-cookies?` does the auth cookies.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |