Fork me on GitHub
#immutant
<
2018-01-01
>
yogthos19:01:34

I noticed that Immutant immutant.web.middleware/wrap-session function doesn't set a ring-session cookie by default

yogthos19:01:03

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}))})

yogthos19:01:27

I think it would be good to match this behavior as other middleware can rely on the cookie name

kaosko20:01:12

does anybody know if immutant has any proxyname configuration similar to tomcat, for when it's run behind a proxy?