Liking cljdoc? Tell your friends :D

lupapiste-commons.ring.session


read-keyclj

(read-key session-key-path)
source

Rekeyablecljprotocol

rekeyclj

(rekey this)
source

rekeyableclj

(rekeyable session-key-path)

Returns a SessionStore with additional method 'rekey', which will reload the secret key given by the 'session-key-path' argument.

Can be used with Compojure for example like this:

(defn rekey-route [store] (POST "/rekey" request (if (#{"127.0.0.1" "0:0:0:0:0:0:0:1"} (:remote-addr request)) (do (rs/rekey store) (response "rekeyd")) (status (response "Unauthorized") 401))))

Returns a SessionStore with additional method 'rekey', which will
reload the secret key given by the 'session-key-path' argument.

Can be used with Compojure for example like this:

(defn rekey-route [store]
  (POST "/rekey" request
    (if (#{"127.0.0.1" "0:0:0:0:0:0:0:1"} (:remote-addr request))
      (do
        (rs/rekey store)
        (response "rekeyd"))
      (status (response "Unauthorized") 401))))
sourceraw docstring

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

× close