ring.middleware.session
(source)Middleware for maintaining browser sessions using cookies.
Sessions are stored using types that adhere to the
ring.middleware.session.store/SessionStore protocol.
Ring comes with two stores included:
ring.middleware.session.memory/memory-store
ring.middleware.session.cookie/cookie-store
For more info about this library see:
https://github.com/ring-clojure/ring/wikiPublic Variable | Short Description |
---|---|
session-request (clj) | Reads current HTTP session map and adds it to :session key of the request. |
session-response (clj) | Updates session based on :session key in response. |
wrap-session (clj) | Reads in the current HTTP session map, and adds it to the :session key on the request. |