Liking cljdoc? Tell your friends :D
Clojure only.

ring.middleware.session.cookie

A session storage engine that stores session data in encrypted cookies.

A session storage engine that stores session data in encrypted cookies.
raw docstring

(cookie-store)
(cookie-store options)

Creates an encrypted cookie storage engine. Accepts the following options:

:key - The secret key to encrypt the session cookie. Must be exactly 16 bytes If no key is provided then a random key will be generated. Note that in that case a server restart will invalidate all existing session cookies.

:readers - A map of data readers used to read the serialized edn from the cookie. For writing, ensure that each data type has a key in the clojure.core/print-method or clojure.core/print-dup multimethods.

Creates an encrypted cookie storage engine. Accepts the following options:

:key - The secret key to encrypt the session cookie. Must be exactly 16 bytes
       If no key is provided then a random key will be generated. Note that in
       that case a server restart will invalidate all existing session
       cookies.

:readers - A map of data readers used to read the serialized edn from the
           cookie. For writing, ensure that each data type has a key in the
           clojure.core/print-method or clojure.core/print-dup multimethods.
raw docstring

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

× close