snaplet-redis-0.1.6.1: Redis support for Snap Framework
Safe HaskellNone
LanguageHaskell2010

Snap.Snaplet.Session.Backends.RedisSession

Synopsis

Documentation

initRedisSessionManager Source #

Arguments

:: FilePath

Path to site-wide encryption key

-> ByteString

Session cookie name

-> Maybe ByteString

Cookie Domain (has no effect with snap < 1.0)

-> Maybe Int

Session time-out (replay attack protection)

-> RedisDB

Redis connection

-> 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 Session