Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Yesod.Session.KeyRotation
Synopsis
- rotateSessionKey :: (MonadHandler m, HasSessionEmbeddings (HandlerSite m)) => m ()
- assignSessionKeyRotation :: (MonadHandler m, HasSessionEmbeddings (HandlerSite m)) => Maybe KeyRotation -> m ()
Documentation
rotateSessionKey :: (MonadHandler m, HasSessionEmbeddings (HandlerSite m)) => m () Source #
assignSessionKeyRotation Source #
Arguments
:: (MonadHandler m, HasSessionEmbeddings (HandlerSite m)) | |
=> Maybe KeyRotation |
|
-> m () |
Indicate whether the current session key should be rotated
The key rotation does not occur immediately; this action only places a value into the session map.
Later calls to assignSessionKeyRotation
on the same handler will
override earlier calls.
At the end of the request handler, if the value is Just
,
the session key will be rotated.
The session variable set by this function is then discarded and is not persisted across requests.