Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype SessionKey = SessionKey {}
- data SessionKeyManager m = SessionKeyManager {
- new :: m SessionKey
- check :: SessionKey -> Bool
- makeSessionKeyManager :: Monad m => Randomization m -> SessionKeyManager m
- sessionKeyToCookieValue :: SessionKey -> ByteString
- sessionKeyFromCookieValue :: ByteString -> Maybe SessionKey
Documentation
newtype SessionKey Source #
Secret value that is sent to and subsequently furnished by the client to identify the session
Instances
Show SessionKey Source # | |
Defined in Session.Key showsPrec :: Int -> SessionKey -> ShowS # show :: SessionKey -> String # showList :: [SessionKey] -> ShowS # | |
Eq SessionKey Source # | |
Defined in Session.Key (==) :: SessionKey -> SessionKey -> Bool # (/=) :: SessionKey -> SessionKey -> Bool # | |
Ord SessionKey Source # | |
Defined in Session.Key compare :: SessionKey -> SessionKey -> Ordering # (<) :: SessionKey -> SessionKey -> Bool # (<=) :: SessionKey -> SessionKey -> Bool # (>) :: SessionKey -> SessionKey -> Bool # (>=) :: SessionKey -> SessionKey -> Bool # max :: SessionKey -> SessionKey -> SessionKey # min :: SessionKey -> SessionKey -> SessionKey # |
data SessionKeyManager m Source #
SessionKeyManager | |
|
makeSessionKeyManager :: Monad m => Randomization m -> SessionKeyManager m Source #