From: dancer-users [mailto:dancer-users-bounces@dancer.pm] On Behalf Of Andrew Beverley Sent: 19 February 2015 13:41 To: Perl Dancer users mailing list Subject: Re: [dancer-users] session dir
On Thu, 2015-02-19 at 13:23 +0000, Zahir Lalani wrote:
Are you sure it's reading the config file that you're editing?
Andy
Yes just tested by making a non-valid change and got lots of errors in the console. So it is using that config file
Another thing I've done wrong before is have 2 keys the same in the config file (eg. 2 "engines" keys). I assume that's not the case?
Other than that, it might be worth sticking some debug statements into lib/Dancer2/Core/Role/SessionFactory/File.pm and trying to glean a bit more information.
Ah! Do you mean this: template: "template_toolkit" engines: template: template_toolkit: start_tag: '<%' end_tag: '%>' encoding: 'utf8' # # session management # YAML stores on disk session: YAML engines: session: YAML: session_dir: /tmp/dancer-sessions so should I be combining the two engines entry as so? template: "template_toolkit"engines: session: YAML engines: template: template_toolkit: start_tag: '<%' end_tag: '%>' encoding: 'utf8' session: YAML: session_dir: /tmp/dancer-sessions Z