Fork me on GitHub
#aleph
<
2019-08-07
>
geraldodev21:08:34

Do you have any advice/library/example for implementing sessions on aleph ? (thnx in advance)

valerauko04:08:59

i use the ring session middleware, it works just fine https://github.com/ring-clojure/ring/wiki/Sessions

👍 4
mccraigmccraig08:08:13

that middleware is expecting a plain value response @UAEH11THP ( https://github.com/ring-clojure/ring/blob/master/ring-core/src/ring/middleware/session.clj#L108 ) - it won't work if your responses are Deferred - should be trivial to modify it to work with Deferred responses though

👍 4
valerauko09:08:23

yeah things get tricky if you use deferred responses