Liking cljdoc? Tell your friends :D

ring.adapter.undertow.middleware.session


ring-sessionclj

(ring-session session)
source

ring-session-keyclj

source

RingSessioncljprotocol

attributeclj

(attribute session key)

get-expiryclj

(get-expiry session)

set-attribute!clj

(set-attribute! session key value)

set-expiryclj

(set-expiry session timeout)
source

set-ring-session!clj

(set-ring-session! session data)
source

set-session-expiryclj

(set-session-expiry session timeout)
source

wrap-sessionclj

(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:

  • :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.
  • :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)
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.  
   * :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)
sourceraw docstring

wrap-undertow-sessionclj

(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
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close