[dancer-users] session() auto-flush

David Golden xdg at xdg.me
Fri Feb 14 20:07:31 GMT 2014


On Fri, Feb 14, 2014 at 2:35 PM, Naveed Massjouni <naveed at vt.edu> wrote:
> Doesn't D1's Session interface already provide get/set via
> Dancer::Session::read/write:
> https://metacpan.org/source/YANICK/Dancer-1.3121/lib/Dancer/Session.pm#L53
> And it seems to automatically do a flush after a write (unless is_lazy is set).

Dancer::Session does, but Dancer::Session::Abstract does not.

The first is a public API using class methods.  The second is the base
class for session objects -- which are what you get when you call the
session() DSL without arguments.

David


-- 
David Golden <xdg at xdg.me>
Take back your inbox! → http://www.bunchmail.com/
Twitter/IRC: @xdg


More information about the dancer-users mailing list