@hackage mysnapsession0.4.1
Sessions and continuations for Snap web apps
Categories
License
BSD-3-Clause
Maintainer
Chris Smith <cdsmith@gmail.com>
Links
- Documentation
- No source repository
- Security
Versions
Installation
Dependencies (11)
- base >=4 && <5
- bytestring >=0.9.1 && <0.10
- cereal >=0.3 && <0.4
- clientsession >=0.4 && <0.5
- containers >=0.3 && <0.5
- mtl >=2.0 && <2.1 Show all…
Dependents (2)
@hackage/mysnapsession-example, @hackage/acme-everything
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.