(wrap-http-header-session handler)
(wrap-http-header-session handler options)
Reads in the current HTTP HEADERS, and adds it to the :session key on the request. If a :session key is added to the respsonse by the handler, the session is updated with the new value. If the value is nil, the session is deleted.
Accepts the following options:
:store An implementation of the SessionStore protocol in the ring.middleware.session.store namespace. This determines how the session is stored. Defaults to in-memory storage using ring.middleware.session.store/memory-store.
:header-name The name of the http header that holds the session key. Defaults to x-http-header-session
Reads in the current HTTP HEADERS, and adds it to the :session key on the request. If a :session key is added to the respsonse by the handler, the session is updated with the new value. If the value is nil, the session is deleted. Accepts the following options: :store An implementation of the SessionStore protocol in the ring.middleware.session.store namespace. This determines how the session is stored. Defaults to in-memory storage using ring.middleware.session.store/memory-store. :header-name The name of the http header that holds the session key. Defaults to `x-http-header-session`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close