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

#####  CGI::Application community mailing list  ################
##                                                            ##
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp    ##
##                                                            ##
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:          http://cgiapp.erlbaum.net/                 ##
##                                                            ##
################################################################

Reply via email to