[cgiapp] enciphered-cookie-only sessions

Ricardo SIGNES perl.cgiapp at rjbs.manxome.org
Mon Mar 10 06:56:38 EDT 2008


Leon Brocard recently uploaded this:

  http://search.cpan.org/~lbrocard/Catalyst-Plugin-CookiedSession-0.32/lib/Catalyst/Plugin/CookiedSession.pm

It's a Catalyst plugin that stores your whole session in the cookie.  It's
stored as a base64-encoded, Rijndael-enciphered, JSON-encoded string.  This
seemed like a swell idea for me, since:

  a. I'm tired of session files cluttering things up.
  b. I don't feel like creating a session db.
  c. My session contents are tiny.

I threw together a quick implementation last night, just for Rubric, and I've
already replaced my use of CAP::Session with it.  I'll refactor it for use as a
real plugin later this week, probably.

  http://git.codesimply.com/?p=Rubric;a=blob;f=lib/Rubric/WebApp/Session.pm;h=3c5f79623f02268a0512487d62e976c7fc0b47aa;hb=HEAD

-- 
rjbs


More information about the cgiapp mailing list