-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement user sessions #317
Comments
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 https://hackage.haskell.org/package/wai-cryptocookie/docs/Wai-CryptoCookie.html The library doesn't depend on anything other than what |
* Implemented user sessions #317 * Updated changelog * Added SessionStatus in readSession instead of Nothing * Added ActionM versions of session functions * Added session example in README
Hi @k0001 , I checked out cryptocookie, seems it would be sensible to introduce it as a good security default. I just have a hard time following the continuation-based API, how do you think it could be best integrated here in |
Hi @ocramz. Have you seen the example code in the tests? https://github.com/k0001/hs-wai-cryptocookie/blob/master/wai-cryptocookie/test/Main.hs — It's not the most didactic, I know, but you'll see there how to use Working with |
As for how |
(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
The text was updated successfully, but these errors were encountered: