Liking cljdoc? Tell your friends :D

framework.session.core

Xiana's session management

Xiana's session management
raw docstring

->session-idclj

(->session-id {{headers :headers cookies :cookies query-params :query-params}
                 :request})
source

fetch-sessionclj

(fetch-session state)
source

guest-session-interceptorclj

source

init-in-memoryclj

(init-in-memory cfg)
(init-in-memory cfg m)

Initialize session in memory.

Initialize session in memory.
sourceraw docstring

interceptorclj

source

protected-interceptorclj

(protected-interceptor protected-path excluded-resource)

On enter allows a resource to be served when

  • it is not protected or
  • the user-provided session-id exists in the server's session store. If the session exists in the session store, it's copies it to the (-> state :session-data), else responds with {:status 401 :body "Invalid or missing session"}

On leave, it updates the session storage from (-> state :session-data)

On enter allows a resource to be served when
   * it is not protected
or
   * the user-provided `session-id` exists in the server's session store.
If the session exists in the session store, it's copies it to the (-> state :session-data),
else responds with {:status 401
                    :body   "Invalid or missing session"}

On leave, it updates the session storage from (-> state :session-data)
sourceraw docstring

Sessioncljprotocol

add!clj

(add! _ k v)

delete!clj

(delete! _ k)

dumpclj

(dump _)

erase!clj

(erase! _)

fetchclj

(fetch _ k)
source

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

× close