in reply to Dancer 2 database session storage

See Dancer2::Core::Role::SessionFactory Any class that consumes this role will be able to store, create, retrieve and destroy session objects.

Then see an example of use at https://metacpan.org/source/DAGOLDEN/Dancer2-Session-MongoDB-0.002/lib/Dancer2/Session/MongoDB.pm

Copy/paste, substitute anything "Mongo" for something "DBI" and you're done :)

Simplest subclass is Dancer2::Session::Simple

Replies are listed 'Best First'.
Re^2: Dancer 2 database session storage
by soundX (Acolyte) on Feb 08, 2015 at 08:30 UTC
    Thank you. I thought I was on the right track with SessionFactory, the mongo example is a real help.