Flexible session middleware for WAI https://github.com/singpolyma/wai-session

Version on this page:0.3.2
LTS Haskell 16.3:0.3.3
Stackage Nightly 2020-07-04:0.3.3
Latest on Hackage:0.3.3

See all snapshots wai-session appears in

LicenseRef-OtherLicense licensed and maintained by Stephen Paul Weber

Module documentation for 0.3.2

This version can be pinned in stack with:[email protected]:a13da93a4cae174f6d062412afd23ae95953d85631e163d7a61ff1694ad4d471,1683

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 IORefs and Data.Map.

See example/Main.hs in git for example usage.