From 15361007ec3e33e588394f0a1d916f1565b1d51f Mon Sep 17 00:00:00 2001 From: Felipe Lessa Date: Tue, 26 May 2015 00:52:49 -0300 Subject: [PATCH] Fix yesod's createCookie's incomplete doc. --- .../src/Web/ServerSession/Frontend/Yesod/Internal.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/serversession-frontend-yesod/src/Web/ServerSession/Frontend/Yesod/Internal.hs b/serversession-frontend-yesod/src/Web/ServerSession/Frontend/Yesod/Internal.hs index 3cd8935..ce6871f 100644 --- a/serversession-frontend-yesod/src/Web/ServerSession/Frontend/Yesod/Internal.hs +++ b/serversession-frontend-yesod/src/Web/ServerSession/Frontend/Yesod/Internal.hs @@ -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.