(attribute session key)
(get-expiry session)
(set-attribute! session key value)
(set-expiry session timeout)
(wrap-session handler)
(wrap-session handler options)
Uses the session from either Undertow. By default, sessions will timeout after 30 minutes of inactivity. Supported options:
Uses the session from either Undertow. By default, sessions will timeout after 30 minutes of inactivity. Supported options: * :timeout The number of seconds of inactivity before session expires [1800] * :cookie-name The name of the cookie that holds the session key ["JSESSIONID"] A :timeout value less than or equal to zero indicates the session should never expire. When running embedded, i.e. not deployed to a WildFly/EAP container, another option is available: * :cookie-attrs A map of attributes to associate with the session cookie [nil] And the following :cookie-attrs keys are supported: * :path - the subpath the cookie is valid for * :domain - the domain the cookie is valid for * :max-age - the maximum age in seconds of the cookie * :secure - set to true if the cookie requires HTTPS, prevent HTTP access * :http-only - set to true if the cookie is valid for HTTP and HTTPS only (ie. prevent JavaScript access)
(wrap-undertow-session handler options)
Ring middleware to insert a :session entry into the request, its
value stored in the io.undertow.server.session.Session
from the
associated handler
Ring middleware to insert a :session entry into the request, its value stored in the `io.undertow.server.session.Session` from the associated handler
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close