Skip to content
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

Open
ocramz opened this issue Oct 1, 2023 · 2 comments
Open

Implement user sessions #317

ocramz opened this issue Oct 1, 2023 · 2 comments

Comments

@ocramz
Copy link
Collaborator

ocramz commented Oct 1, 2023

(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

@ocramz
Copy link
Collaborator Author

ocramz commented Dec 16, 2023

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

@k0001
Copy link

k0001 commented Apr 27, 2024

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.

@ocramz ocramz added info needed More information is needed feedback needed labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants