Wheb-0.2.0.0: The frictionless WAI Framework

Safe HaskellNone
LanguageHaskell2010

Web.Wheb.Plugins.Session

Documentation

data SessionContainer Source

Constructors

forall r . SessionBackend r => SessionContainer r 

class SessionBackend c where Source

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.

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