@hackage wai-session0.3.2
Flexible session middleware for WAI
Categories
License
LicenseRef-OtherLicense
Maintainer
Stephen Paul Weber <singpolyma@singpolyma.net>
Links
Versions
Installation
Dependencies (11)
- StateVar
- base >=4 && <5
- blaze-builder
- bytestring
- containers
- cookie Show all…
Dependents (12)
@hackage/ihp, @hackage/wai-session-mysql, @hackage/nested-routes, @hackage/acme-everything, @hackage/wai-session-tokyocabinet, @hackage/ihp-ide, Show all…
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.