|
|
|
|
|
|
Synopsis |
|
|
|
Documentation |
|
newSession :: MonadIO m => Database -> Maybe UserID -> m Session |
Starts a new session and stores it in the database.
|
|
deleteSession :: MonadIO m => Database -> SessionID -> m () |
Ends a session by removing it from the database.
|
|
updateSession :: MonadIO m => Database -> Session -> m () |
Update the stored session information for the given session.
|
|
getSession |
:: MonadIO m | | => Database | | -> SessionID | The ID of the session to get.
| -> m (Maybe Session) | | Gets session information, and updates the last use
information. The sessionLastUse field will contain
the last use information as it was before this call.
If the session has expired, the session is removed and
Nothing is returned. If the session does not exist,
Nothing is returned.
|
|
|
setSessionUser :: MonadIO m => Database -> Session -> Maybe UserID -> m Session |
Sets the UserID associated with a session.
|
|
purgeSessions :: MonadIO m => Database -> m () |
|
listSessions :: MonadIO m => Database -> m [Session] |
|
Produced by Haddock version 0.7 |