[dancer-users] Setting Session Engine

Alex Mestiashvili alex at biotec.tu-dresden.de
Fri Sep 11 15:52:06 BST 2015


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 at 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|


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150911/0d87387c/attachment.html>


More information about the dancer-users mailing list