Wheb-0.0.1.1: The Batteries-Included Haskell WAI Framework

Safe HaskellNone

Web.Wheb.Plugins.Session

Documentation

data SessionContainer Source

Constructors

forall r . SessionBackend r => SessionContainer r 

class SessionBackend c whereSource

Methods

backendSessionPut :: (SessionApp a, MonadIO m) => Text -> Text -> Text -> c -> WhebT a b m ()Source

backendSessionGet :: (SessionApp a, MonadIO m) => Text -> Text -> c -> WhebT a b m (Maybe Text)Source

backendSessionDelete :: (SessionApp a, MonadIO m) => Text -> Text -> c -> WhebT a b m ()Source

backendSessionClear :: (SessionApp a, MonadIO m) => Text -> c -> WhebT a b m ()Source

Instances

SessionBackend SessionData

In memory session backend. Session values will not persist after server restart.