Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singpolyma/wai-session
Flexible session middleware for WAI
https://github.com/singpolyma/wai-session
Last synced: 3 months ago
JSON representation
Flexible session middleware for WAI
- Host: GitHub
- URL: https://github.com/singpolyma/wai-session
- Owner: singpolyma
- License: isc
- Created: 2012-09-06T00:44:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-11-11T12:10:28.000Z (about 4 years ago)
- Last Synced: 2024-10-03T01:40:20.690Z (3 months ago)
- Language: Haskell
- Size: 21.5 KB
- Stars: 15
- Watchers: 4
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
Provides a generic, cookie-based middleware for sessions that is
parameterised over the session store, the cookie name, and the
cookie parameters (such as path, expiry, etc). Passes a pair of
functions (lookup key, set key) for the current session through the
'Vault' in the 'Request'.Also provides a simple example session store based on threadsafe
'IORef's and 'Data.Map'.See example/Main.hs in git for example usage.