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

Yesod.Session.Manager.Save

Synopsis

Documentation

saveSession :: Monad tx => SessionManager tx m -> Load Session -> SessionMap -> m (SaveResult Session) Source #

Save the session on the storage backend

A SessionLoad given by loadSession is expected besides the new contents of the session.

Returns Nothing if the session was empty and didn't need to be saved. Note that this does not necessarily means that nothing was done. If you ask for a session key to be rotated and clear every other sesssion variable, then saveSession will delete the older session but will avoid creating a new, empty one.