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

Versions 0.1, 0.1.1, 0.2, 0.3, 0.3.1, 0.3.2
Dependencies base (==4.*), blaze-builder, bytestring, containers, cookie, http-types, StateVar, time, transformers, vault, wai (>=1.1.0) [details]
License OtherLicense
Copyright © 2012 Stephen Paul Weber
Author Stephen Paul Weber <singpolyma@singpolyma.net>
Maintainer Stephen Paul Weber <singpolyma@singpolyma.net>
Stability experimental
Category Web
Home page https://github.com/singpolyma/wai-session
Bug tracker https://github.com/singpolyma/wai-session/issues
Source repository head: git clone git://github.com/singpolyma/wai-session.git
Uploaded Fri Sep 7 23:08:53 UTC 2012 by StephenWeber
Distributions LTSHaskell:0.3.2, NixOS:0.3.2, Stackage:0.3.2, Tumbleweed:0.3.2
Downloads 1211 total (11 in the last 30 days)
Votes
0 []
Status Docs uploaded by user [build log]
All reported builds failed [all 1 reports]

Modules

  • Network
    • Wai
      • Network.Wai.Session
        • Network.Wai.Session.Map

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for wai-session

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.