https://kotlinlang.org logo
#http4k
Title
# http4k
c

Cosmin Victor Celea

04/01/2020, 2:24 PM
Hi @dave how would you handle sessions in http4k? I am trying to a simple string that should persist in the session
d

dave

04/01/2020, 2:26 PM
TBH, I've only ever stuck it in redis or encrypt it and stick it entirely into a cookie.
j

James Richardson

04/02/2020, 3:24 PM
Sessions as in maps of stuff that hang around in memory between request invocations are not very compatible with 12 factor apps, so probably not terribly common. You could probably hook up a filter and a RequestContext to create a session-like experience, but would definitely be careful there...
👍 1
12 Views