getSession
This commit is contained in:
parent
7dd1b4cba8
commit
d3a9201b27
@ -58,7 +58,9 @@ module Yesod.Handler
|
|||||||
, alreadyExpired
|
, alreadyExpired
|
||||||
, expiresAt
|
, expiresAt
|
||||||
-- * Session
|
-- * Session
|
||||||
|
, SessionMap
|
||||||
, lookupSession
|
, lookupSession
|
||||||
|
, getSession
|
||||||
, setSession
|
, setSession
|
||||||
, deleteSession
|
, deleteSession
|
||||||
-- ** Ultimate destination
|
-- ** Ultimate destination
|
||||||
@ -483,6 +485,10 @@ lookupSession n = GHandler $ do
|
|||||||
m <- lift $ lift $ lift get
|
m <- lift $ lift $ lift get
|
||||||
return $ Map.lookup n m
|
return $ Map.lookup n m
|
||||||
|
|
||||||
|
-- | Get all session variables.
|
||||||
|
getSession :: GHandler s m SessionMap
|
||||||
|
getSession = GHandler $ lift $ lift $ lift get
|
||||||
|
|
||||||
#if TEST
|
#if TEST
|
||||||
|
|
||||||
testSuite :: Test
|
testSuite :: Test
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user