The wai-session package

[Tags: library]

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.


[Skip to ReadMe]

Properties

Versions0.1, 0.1.1, 0.2, 0.3, 0.3.1, 0.3.2
Change logNone available
Dependenciesbase (==4.*), blaze-builder, bytestring, containers, cookie, http-types, StateVar, time, transformers, vault, wai (>=1.1.0) [details]
LicenseOtherLicense
Copyright© 2012 Stephen Paul Weber
AuthorStephen Paul Weber <singpolyma@singpolyma.net>
MaintainerStephen Paul Weber <singpolyma@singpolyma.net>
Stabilityexperimental
CategoryWeb
Home pagehttps://github.com/singpolyma/wai-session
Bug trackerhttps://github.com/singpolyma/wai-session/issues
Source repositoryhead: git clone git://github.com/singpolyma/wai-session.git
UploadedFri Sep 7 23:08:53 UTC 2012 by StephenWeber
DistributionsNixOS:0.3.2, Stackage:0.3.2
Downloads816 total (78 in last 30 days)
Votes
0 []
StatusDocs uploaded by user [build log]
All reported builds failed [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for wai-session-0.1

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.