yesod-session-persist-0.0.0.2: SQL session backend for Yesod
Safe HaskellSafe-Inferred
LanguageGHC2021

Session.Key

Synopsis

Documentation

newtype SessionKey Source #

Secret value that is sent to and subsequently furnished by the client to identify the session

Constructors

SessionKey 

Fields

Instances

Instances details
Show SessionKey Source # 
Instance details

Defined in Session.Key

Eq SessionKey Source # 
Instance details

Defined in Session.Key

Ord SessionKey Source # 
Instance details

Defined in Session.Key

data SessionKeyManager m Source #

Constructors

SessionKeyManager 

Fields

  • new :: m SessionKey

    Generate a new session key

    In a production setting, it is critical that this action be thread-safe and produce a securely random result.

  • check :: SessionKey -> Bool

    Validate that a text is something that plausibly could have been generated by new.