wai-session: Flexible session middleware for WAI

[ library, web ] [ Propose Tags ]

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]

Modules

[Last Documentation]

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.3.3
Dependencies base (>=4 && <5), blaze-builder, bytestring, containers, cookie, http-types, StateVar, time, transformers, vault, wai (>=1.1.0) [details]
License LicenseRef-OtherLicense
Copyright © 2012 Stephen Paul Weber
Author Stephen Paul Weber <singpolyma@singpolyma.net>
Maintainer Stephen Paul Weber <singpolyma@singpolyma.net>
Category Web
Home page https://github.com/singpolyma/wai-session
Bug tracker https://github.com/singpolyma/wai-session/issues
Source repo head: git clone git://github.com/singpolyma/wai-session.git
Uploaded by StephenWeber at 2014-01-27T22:13:07Z
Distributions LTSHaskell:0.3.3, NixOS:0.3.3, Stackage:0.3.3
Reverse Dependencies 8 direct, 0 indirect [details]
Downloads 6018 total (31 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-18 [all 6 reports]

Readme for wai-session-0.1.1

[back to package description]
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.