Commit Graph

14 Commits

Author SHA1 Message Date
Michael Xavier
6edd459223 Wall-werror all the things 2017-02-01 18:20:55 -08:00
Casey Allred
37590b9e3e limit the session key as per the the definition comment 'The ID of a session. Always 18 bytes base64url-encoded as 24 characters.' using 30 characters to be conservative 2017-01-23 21:33:02 +00:00
Felipe Lessa
da120b20ef Use qualified imports for persistent example section.
The scaffold namespace is too poluted.
2015-06-01 13:14:20 -03:00
Felipe Lessa
0cca9cd086 Use HashMap for SessionMap.
It's a bit faster and uses a bit less memory.
2015-05-31 23:09:02 -03:00
Felipe Lessa
16c4248355 More GHC 7.8 fixes (import mempty, derive Typeable). 2015-05-31 14:36:33 -03:00
Felipe Lessa
f0e1005f18 Add Applicative imports for GHC 7.8. 2015-05-31 12:57:52 -03:00
Felipe Lessa
3e33c58af0
Generalize session data (huge commit). 2015-05-31 11:07:23 -03:00
Felipe Lessa
faae95312a Use cereal for 2x improvement in time and space for persistent.
Now the peak memory usage of the persistent test suite sits at
2 GiB (752 MB max residency).  It also uses a lot less CPU time.
2015-05-28 13:34:45 -03:00
Felipe Lessa
9d33cb07aa Fix warning. 2015-05-28 01:33:21 -03:00
Felipe Lessa
80f121f57b Throw exceptions from persistent's {insert,replace}Session.
Now all tests are green for serversession-backend-persistent.
2015-05-28 00:48:44 -03:00
Felipe Lessa
c2afd3e1a5
Support for idle timeouts, absolute timeouts and non-persistent cookies. 2015-05-25 19:48:12 -03:00
Felipe Lessa
d462d61b32 Use ConnectionPool type synonym, same as Yesod's scaffold. 2015-05-25 18:54:20 -03:00
Felipe Lessa
fe0e29e06e Fix serversession-frontend-yesod except for expiration. 2015-05-25 16:26:36 -03:00
Felipe Lessa
71aff2dd94 Separate into three different packages.
serversession and serversession-backend-persistent build,
serversession-frontend-yesod is broken.
2015-05-23 01:42:13 -03:00