This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-01
Channels
- # beginners (2)
- # cider (20)
- # cljsjs (3)
- # clojure (86)
- # clojure-italy (2)
- # clojure-spec (7)
- # clojure-uk (3)
- # clojurescript (8)
- # defnpodcast (3)
- # emacs (10)
- # figwheel (1)
- # hoplon (9)
- # immutant (4)
- # keechma (2)
- # luminus (11)
- # off-topic (13)
- # re-frame (6)
- # reagent (3)
- # ring (1)
- # specter (5)
- # sql (2)
- # unrepl (127)
I noticed that Immutant immutant.web.middleware/wrap-session
function doesn't set a ring-session
cookie by default
the wrap-session
middleware in Ring core does the [following](https://github.com/ring-clojure/ring/blob/eaf3af0449ad96b3f036a1ea9391af797e3654d9/ring-core/src/ring/middleware/session.clj#L17):
(defn- session-options
[options]
{:store (options :store (mem/memory-store))
:cookie-name (options :cookie-name "ring-session")
:cookie-attrs (merge {:path "/"
:http-only true}
(options :cookie-attrs)
(if-let [root (options :root)]
{:path root}))})