snap-0.6.0.2: Snap: A Haskell Web Framework: project starter executable and glue code library

Snap.Snaplet.Session.Backends.CookieSession

Synopsis

Documentation

initCookieSessionManagerSource

Arguments

:: FilePath

Path to site-wide encryption key

-> ByteString

Session cookie name

-> Maybe Int

Session time-out (replay attack protection)

-> SnapletInit b SessionManager 

Initialize a cookie-backed session, returning a SessionManager to be stuffed inside your application's state. This SessionManager will enable the use of all session storage functionality defined in Snap.Snaplet.Session