| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Snap.Snaplet.Session.Backends.RedisSession
Synopsis
- initRedisSessionManager :: FilePath -> ByteString -> Maybe ByteString -> Maybe Int -> RedisDB -> SnapletInit b SessionManager
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