improve makeSessionBackend comment in scaffold
This commit is contained in:
parent
00b9acd98d
commit
344a884656
@ -85,7 +85,7 @@ instance Yesod ~sitearg~ where
|
|||||||
approot = ApprootMaster $ appRoot . settings
|
approot = ApprootMaster $ appRoot . settings
|
||||||
|
|
||||||
-- Store session data on the client in encrypted cookies,
|
-- Store session data on the client in encrypted cookies,
|
||||||
-- place the encryption key file in the config folder
|
-- default session idle timeout is 120 minutes
|
||||||
makeSessionBackend _ = do
|
makeSessionBackend _ = do
|
||||||
key <- getKey "config/client_session_key.aes"
|
key <- getKey "config/client_session_key.aes"
|
||||||
return . Just $ clientSessionBackend key 120
|
return . Just $ clientSessionBackend key 120
|
||||||
|
|||||||
@ -63,7 +63,7 @@ instance Yesod ~sitearg~ where
|
|||||||
approot = ApprootMaster $ appRoot . settings
|
approot = ApprootMaster $ appRoot . settings
|
||||||
|
|
||||||
-- Store session data on the client in encrypted cookies,
|
-- Store session data on the client in encrypted cookies,
|
||||||
-- place the encryption key file in the config folder
|
-- default session idle timeout is 120 minutes
|
||||||
makeSessionBackend _ = do
|
makeSessionBackend _ = do
|
||||||
key <- getKey "config/client_session_key.aes"
|
key <- getKey "config/client_session_key.aes"
|
||||||
return . Just $ clientSessionBackend key 120
|
return . Just $ clientSessionBackend key 120
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user