This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-08
Channels
- # announcements (1)
- # beginners (21)
- # calva (27)
- # cljs-dev (25)
- # clojure (40)
- # clojure-europe (5)
- # clojure-italy (1)
- # clojure-uk (5)
- # clojurescript (9)
- # clojureverse-ops (1)
- # clojutre (1)
- # cursive (15)
- # datomic (9)
- # emacs (28)
- # fulcro (3)
- # jackdaw (5)
- # joker (3)
- # pedestal (1)
- # protorepl (6)
- # shadow-cljs (1)
- # spacemacs (3)
- # sql (1)
- # tools-deps (6)
- # vim (6)
- # yada (1)
Hi all! I am working with lacinia-pedestal and I want to add cookie-sessions. Here's my handler
:
(defn handler
"Ion handler. Start up backend processes."
[service-map]
(-> service-map
(assoc ::http/resource-path "/public"
::http/allowed-origins (constantly true)
::http/chain-provider provider/ion-provider
::http/enable-session {:store cookie/cookie-store})
cast-log
http/create-provider
cast-log))
which enables the Ring middleware session interceptor. Unfortunately, I am having difficulty writing an interceptor that will put a session on the HTTP browser. I would appreciate any suggestions, help, etc. you might have on this. Thanks!