Fix yesod's createCookie's incomplete doc.

This commit is contained in:
Felipe Lessa 2015-05-26 00:52:49 -03:00
parent c2bd20cd56
commit 15361007ec

View File

@ -81,9 +81,11 @@ backend state =
cookieNameBS = TE.encodeUtf8 $ getCookieName state
-- | Create a cookie for the given session ID.
-- | Create a cookie for the given session.
--
-- The cookie expiration is set via 'nextExpires'. Note that this is just an optimization
-- The cookie expiration is set via 'nextExpires'. Note that
-- this is just an optimization, as the expiration is checked on
-- the server-side as well.
createCookie :: State s -> ByteString -> Session -> Header
createCookie state cookieNameBS session =
-- Generate a cookie with the final session ID.