[dancer-users] Sessions in Dancer2::Test

Jeff Boes jeff at endpoint.com
Wed Jun 26 14:26:07 BST 2013

First, a documentation bug to report:


This page links to "Dancer2::Session" in the "See Also" section, but there's nothing at the link.

Now to my question: I'm working on unit tests for a Dancer2 application. The application is a typical log-in, which is
supposed to store some data in the session, so subsequent requests can make use of it.

During the login page processing, I can see that the session is being affected. But during the next unit test, which is
a follow-up request, my session is empty.

I'm using the YAML engine for session control. Is there a way for each dancer_request call to share a session?

Jeff Boes <><
jeff at endpoint.com

More information about the dancer-users mailing list