scotty-session 0.0.3 → 0.0.4
raw patch · 2 files changed
+6/−6 lines, 2 files
Files
- Web/Scotty/Session.hs +2/−2
- scotty-session.cabal +4/−4
Web/Scotty/Session.hs view
@@ -106,8 +106,8 @@ setCookie :: (Monad m, ScottyError e) => Session a -> ActionT e m () setCookie sess =- do let formattedExp = TL.pack $ formatTime defaultTimeLocale "%a, %d-%b-%Y %X %Z" (sess_validUntil sess)- setHeader "Set-Cookie" $ "sid=" <> TL.fromStrict (sess_id sess) <> "; " <> formattedExp+ do let formattedExp = TL.pack $ formatTime defaultTimeLocale "%a, %d %b %Y %X %Z" (sess_validUntil sess)+ setHeader "Set-Cookie" $ "sid=" <> TL.fromStrict (sess_id sess) <> "; Path=/; Expires=" <> formattedExp loadSession :: (MonadIO m, ScottyError e) => SessionJar a -> ActionT e m (Maybe (Session a)) loadSession sessions =
scotty-session.cabal view
@@ -1,12 +1,12 @@ Name: scotty-session-Version: 0.0.3+Version: 0.0.4 Synopsis: Adding session functionality to scotty Homepage: https://github.com/agrafix/scotty-session Bug-reports: https://github.com/agrafix/scotty-session/issues License: BSD3-Author: Alexander Thiemann <mail@agrafix.net>-Maintainer: Alexander Thiemann <mail@agrafix.net>-Copyright: (c) 2013 Alexander Thiemann+Author: Alexander Thiemann <mail@athiemann.net>+Maintainer: Alexander Thiemann <mail@athiemann.net>+Copyright: (c) 2013-2014 Alexander Thiemann Category: Web Stability: experimental Build-type: Simple