Commit Graph

572 Commits

Author SHA1 Message Date
patrick brisbin
21cd47cc98
Add envClientSessionBackend, ENV-based session key
This can be useful if:

1. You can't rely on a persistent file system (e.g. Heroku)
2. Your application is open source (e.g. you can't commit the key)

By keeping a consistent value in the environment variable, your users will
have consistent sessions without relying on the file system.

Usage:

    makeSessionBackend _ = fmap Just $ envClientSessionBackend 120 "SESSION_KEY"
2014-11-25 11:15:13 -05:00
Michael Snoyman
a65349612e Support time 1.5 2014-11-25 07:18:11 +02:00
Michael Snoyman
846033b176 Fix some haddocks 2014-11-23 18:54:50 +02:00
Michael Snoyman
5622e96725 README.md 2014-11-23 12:18:41 +02:00
Michael Snoyman
f8b9a702b8 Add missing import 2014-11-23 12:13:25 +02:00
Michael Snoyman
0af76fa97b Only update expires time once per hour 2014-11-23 12:10:22 +02:00
David Turner
42f098ff64 neverExpires sets 'Expires' header to be a year from now. 2014-11-21 17:40:32 +00:00
Michael Snoyman
b15ce6b1ea Version bump 2014-11-19 11:10:45 +02:00
Michael Snoyman
9a4348a0e3 Improve etag supported fpco/stackage-server#29 #868 #869 2014-11-19 11:03:55 +02:00
Michael Snoyman
b38abdba0f notModified and setEtag 2014-11-15 20:31:27 +02:00
Michael Snoyman
ec987529ba Version bump 2014-11-09 14:43:25 +02:00
Greg Weber
898c0a1e18 test case for toWidget* functions 2014-10-27 21:16:03 -07:00
Michael Snoyman
5a426529db Version bump/changelog start 2014-10-20 11:53:57 +03:00
Michael Snoyman
972e117005 More efficient token generation
Old code would create a new System.Random generator each time, which
requires going to the system entropy store. New code caches an
mwc-random gen at startup.
2014-10-20 10:34:38 +03:00
Michael Snoyman
3b310a7103 yesodWithInternalState 2014-10-07 07:42:02 +03:00
Maximilian Tagher
e49ccb7871 Document Route typeclasses 2014-10-05 15:06:23 -07:00
Michael Snoyman
dbc251b9ee Version bump 2014-10-03 08:50:25 +03:00
Greg Weber
7f775e1dde document cache key 2014-10-02 09:11:23 -07:00
Michael Snoyman
c91b2978be Remove deprecated deps 2014-10-01 07:09:39 +03:00
Michael Snoyman
6fed35f9ea Version bump 2014-10-01 07:01:02 +03:00
Greg Weber
f633734a96 expose Yesod/Routes/TH/Types.hs 2014-09-30 12:44:09 -07:00
Greg Weber
aaeafb0591 add some documentation 2014-09-30 12:22:44 -07:00
Michael Snoyman
e21bfb4d94 GHC 7.4 fixes 2014-09-30 13:45:39 +03:00
Michael Snoyman
a39962b72d Add missing module for Hackage testing 2014-09-30 12:47:59 +03:00
Michael Snoyman
9ce4d49d0a persistent 2.1 and warp 3.0.2 2014-09-30 06:57:38 +03:00
Michael Snoyman
3447510080 Clean up a bunch of warnings 2014-09-29 08:08:02 +03:00
Michael Snoyman
14d9b7ce71 Fix compilation error 2014-09-29 07:41:54 +03:00
Greg Weber
8fd0378c4b TypeCache documentation 2014-09-24 09:04:41 -07:00
Michael Snoyman
29894604e5 Merge branch 'master' into yesod-1.4
Conflicts:
	yesod-core/yesod-core.cabal
2014-09-23 10:00:24 +03:00
Michael Snoyman
20041c0859 Version bump 2014-09-23 09:37:00 +03:00
RyanGlScott
b70790e525 Bump random upper version bounds 2014-09-22 23:43:31 -05:00
Michael Snoyman
def48d8a45 Version bumps for 1.4 release 2014-09-21 11:41:37 +03:00
Greg Weber
f18d0a8bac TypeCache typo and module exposure 2014-09-20 20:57:27 -07:00
Greg Weber
00b5781ec5 add cachedBy, like cached but adds a key
re-factored to a base implementation with
no Yesod dependencies in TypeCache.hs
2014-09-20 14:34:10 -07:00
Michael Snoyman
ccab062f2d Remove all conditional compilation for Yesod 1.4 release
Left in for GHC-bundled libraries (ghc, base, bytestring, binary)
2014-09-07 18:17:45 +03:00
Michael Snoyman
598e570913 Remove deprecated packages 2014-09-07 17:41:09 +03:00
Michael Snoyman
f779004d19 Merge yesod-routes into yesod-core entirely 2014-09-07 17:34:37 +03:00
Michael Snoyman
29d7e252f1 Merge branch 'master' into yesod-1.4 2014-08-31 05:04:27 +03:00
Michael Snoyman
1e76a28f6d withUrlRenderer 2014-08-31 02:24:08 +03:00
Michael Snoyman
9471399589 Merge branch 'master' into yesod-1.4 2014-08-28 05:19:21 +03:00
Michael Snoyman
d6b3d2a890 conduit 1.2 version bumps 2014-08-27 18:01:02 +03:00
Michael Snoyman
d3df218a96 conduit 1.2 patch 2014-08-27 17:34:35 +03:00
Michael Snoyman
6eb1447dd9 Add missing LANGUAGE pragma 2014-08-27 08:15:47 +03:00
Michael Snoyman
c66ef04f17 Merge branch 'master' into yesod-1.4
Conflicts:
	yesod-form/Yesod/Form/Functions.hs
2014-08-25 20:20:16 +03:00
Michael Snoyman
641135f011 Version bump 2014-08-25 10:38:43 +03:00
Michael Snoyman
a3ec07c359 Disable broken test 2014-08-23 21:50:38 +03:00
Michael Snoyman
05d31d6621 Add MonadActive instances 2014-07-30 11:33:38 +03:00
Michael Snoyman
6a09bc3406 Version bumps 2014-07-26 21:53:26 +03:00
Michael Snoyman
e6eae8ee5a Merge remote-tracking branch 'origin/master' into yesod-1.4
Conflicts:
	yesod-routes/Yesod/Routes/Parse.hs
	yesod-routes/test/Hierarchy.hs
	yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Yuriy Syrovetskiy
13243aba54 typo 2014-07-25 19:07:01 +04:00