I am trying to get Deferred to work but keep getting: Error 500: core - Must specify session engine in settings prior to using 'session' keyword at /home/richard/perl5/lib/perl5/Dancer/Plugin/Deferred.pm line 26. Powered by Dancer2 <http://perldancer.org/> 0.161000 I have used the command: set session => 'YAML'; to set the session. I have also tried session: "YAML" in my config file. Is there something else I must do?
I set the session in the config: session: YAML
On 11 Sep 2015, at 14:43, Richard Reina <gatorreina@gmail.com> wrote:
I am trying to get Deferred to work but keep getting:
Error 500: core - Must specify session engine in settings prior to using 'session' keyword at /home/richard/perl5/lib/perl5/Dancer/Plugin/Deferred.pm line 26. Powered by Dancer2 <http://perldancer.org/> 0.161000
I have used the command: set session => 'YAML'; to set the session. I have also tried session: "YAML" in my config file. Is there something else I must do? _______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
2015-09-11 8:51 GMT-05:00 Attila Bárdi <attila.bardi@gmail.com>:
I set the session in the config:
session: YAML
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
It turns out I was using the Dancer 1 deferred plugin. Switched to the dancer 2 plugin and problem solved.
On 09/11/2015 02:43 PM, Richard Reina wrote:
I am trying to get Deferred to work but keep getting:
Error 500: core - Must specify session engine in settings prior to using 'session' keyword at /home/richard/perl5/lib/perl5/Dancer/Plugin/Deferred.pm line 26. Powered by Dancer2 <http://perldancer.org/> 0.161000
I have used the command: set session => 'YAML'; to set the session. I have also tried session: "YAML" in my config file. Is there something else I must do?
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
According to the https://metacpan.org/pod/Dancer2::Session::YAML the configuration for sessions should look like that: |session: ||"YAML"| |engines:| | ||session:| | ||YAML:| | ||session_dir: ||"/tmp/dancer-sessions"| | ||cookie_duration: 3600 ||# Default cookie timeout in seconds|
participants (3)
-
Alex Mestiashvili -
Attila Bárdi -
Richard Reina