From 6e43ea5fc362f110232550f9f7cca3c6fe79a4f2 Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Wed, 20 Oct 2010 21:12:29 +0200 Subject: [PATCH] Document caveat in setSession --- Yesod/Handler.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Yesod/Handler.hs b/Yesod/Handler.hs index 08fa6341..3f9146c0 100644 --- a/Yesod/Handler.hs +++ b/Yesod/Handler.hs @@ -448,6 +448,9 @@ expiresAt = setHeader "Expires" . formatRFC1123 -- The session is handled by the clientsession package: it sets an encrypted -- and hashed cookie on the client. This ensures that all data is secure and -- not tampered with. +-- +-- Please note that the value you set here will not be available via +-- 'getSession' until the /next/ request. setSession :: String -- ^ key -> String -- ^ value -> GHandler sub master ()