- type SessionState = Integer
- getSessionedStateWithCookie :: HasHeaders request => String -> request -> IO (Maybe SessionState)
- newSessionedStateWithCookie :: HasHeaders response => String -> SessionState -> IO (response -> response)
- updateSessionedStateWithCookie :: HasHeaders request => String -> request -> SessionState -> IO ()
- deleteSessionedStateWithCookie :: (HasHeaders request, HasHeaders response) => String -> request -> IO (response -> response)
Documentation
type SessionState = IntegerSource
getSessionedStateWithCookie :: HasHeaders request => String -> request -> IO (Maybe SessionState)Source
search the cookie with the given name in the headers (request headers) and get the session id. Then search the Session Map for the value
newSessionedStateWithCookie :: HasHeaders response => String -> SessionState -> IO (response -> response)Source
set the value in a new session. Then set responses headers with the cookie.
updateSessionedStateWithCookie :: HasHeaders request => String -> request -> SessionState -> IO ()Source
deleteSessionedStateWithCookie :: (HasHeaders request, HasHeaders response) => String -> request -> IO (response -> response)Source