Open ocramz opened 1 year ago
code from here could be recycled for this purpose : https://hackage.haskell.org/package/scotty-session-0.0.5/docs/Web-Scotty-Session.html#t:ScottySM
but using scotty internal cookie functions
I just published wai-cryptocookie
, a small wai
library that maybe could be used to implement this.
https://hackage.haskell.org/package/wai-cryptocookie/docs/Wai-CryptoCookie.html
The library doesn't depend on anything other than what scotty
already depends on.
(as already mentioned in the
urlshortener
example program)With cookies #69 and a proper exception system in place #310 it should be possible (and fairly easy) to implement a "session" interface like Flask and similar have:
https://testdriven.io/blog/flask-sessions/
See also #59