Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data SessionContainer Source
forall r . SessionBackend r => SessionContainer r |
class SessionApp a where Source
class SessionBackend c where Source
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 Text Source
deleteSessionValue :: (SessionApp a, MonadIO m) => Text -> WhebT a b m () Source
generateSessionKey :: (SessionApp a, MonadIO m) => WhebT a b m Text Source
getCurrentSessionKey :: (SessionApp a, MonadIO m) => WhebT a b m Text Source
clearSessionKey :: (SessionApp a, MonadIO m) => WhebT a b m Text Source