LicenseRef-OtherLicense licensed and maintained by Stephen Paul Weber

Module documentation for 0.3.3

This version can be pinned in stack with:wai-session-0.3.3@sha256:14bb13c964e067a8c5f78c2b86d12dc1d0478bd65b5abff4dcbd23429abe184d,1744

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.

comments powered byDisqus