mysnapsession: Sessions and continuations for Snap web apps

[ bsd3, library, web ] [ Propose Tags ]

This package provides two Snap extensions, implementing sessions as either memory-backed arbitrary types, or as client-side cookie-backed serializable types. The latter uses the clientsession package to encrypt the cookie for security. In both extensions, sessions are protected from session stealing by checking the source IP address, and have a configurable timeout (optional for the cookie- backed back end). The session type is user-defined.

In addition, a library is provided for a continuation- based programming model called dialogues, which allows natural specification of stateful interactions with the client that span multiple requests. Because the session type is not serializable, this requires the memory-backed implementation.

Versions [faq] 0.1, 0.1.1, 0.1.2, 0.2, 0.3, 0.3.1, 0.4, 0.4.1
Dependencies base (==4.*), bytestring (>=0.9.1 && <0.10), cereal (==0.3.*), clientsession (==0.4.*), containers (>=0.3 && <0.5), mtl (==2.*), random (==1.0.*), regex-posix (==0.94.*), snap (==0.3.*), snap-core (==0.3.*), time (>=1.1 && <1.3) [details]
License BSD-3-Clause
Author Chris Smith <>
Maintainer Chris Smith <>
Category Web
Uploaded by ChrisSmith at Mon Jan 3 03:47:07 UTC 2011
Distributions NixOS:0.4.1
Downloads 3526 total (77 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2016-12-28 [all 6 reports]


  • Snap
    • Snap.Dialogues
    • Extension
      • Snap.Extension.Session
        • Snap.Extension.Session.Client
        • Snap.Extension.Session.Memory
    • Snap.SessionUtil


Maintainer's Corner

For package maintainers and hackage trustees