Safe Haskell | None |
---|
Documentation
data SessionContainer Source
forall r . SessionBackend r => SessionContainer r |
class SessionApp a whereSource
class SessionBackend c whereSource
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
SessionBackend SessionData | In memory session backend. Session values will not persist after server restart. |
setSessionValue :: (SessionApp a, MonadIO m) => Text -> Text -> WhebT a b m ()Source
getSessionValue :: (SessionApp a, MonadIO m) => Text -> WhebT a b m (Maybe Text)Source
getSessionValue' :: (SessionApp a, MonadIO m) => Text -> Text -> WhebT a b m TextSource
deleteSessionValue :: (SessionApp a, MonadIO m) => Text -> WhebT a b m ()Source
generateSessionKey :: (SessionApp a, MonadIO m) => WhebT a b m TextSource
getCurrentSessionKey :: (SessionApp a, MonadIO m) => WhebT a b m TextSource
clearSessionKey :: (SessionApp a, MonadIO m) => WhebT a b m TextSource