<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 09/11/2015 02:43 PM, Richard Reina
wrote:<br>
</div>
<blockquote
cite="mid:CAKLxnzbnusq9rzHobCfo8mTz+oeEpPRnh9xBw8L-Ynu0vmyf_Q@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I am trying to get Deferred to work but keep getting:<br>
<br>
</div>
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.
<div id="footer">
Powered by <a moz-do-not-send="true"
href="http://perldancer.org/">Dancer2</a> 0.161000<br>
<br>
</div>
<div id="footer">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?<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
dancer-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a>
<a class="moz-txt-link-freetext" href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a>
</pre>
</blockquote>
<br>
According to the <a class="moz-txt-link-freetext" href="https://metacpan.org/pod/Dancer2::Session::YAML">https://metacpan.org/pod/Dancer2::Session::YAML</a><br>
the configuration for sessions should look like that:<br>
<br>
<pre><div class="container"><div class="line number1 index0 alt2"><code class="perl plain">session: </code><code class="perl string">"YAML"</code></div><div class="line number2 index1 alt1"> </div><div class="line number3 index2 alt2"><code class="perl plain">engines:</code></div><div class="line number4 index3 alt1"><code class="perl spaces"> </code><code class="perl plain">session:</code></div><div class="line number5 index4 alt2"><code class="perl spaces"> </code><code class="perl plain">YAML:</code></div><div class="line number6 index5 alt1"><code class="perl spaces"> </code><code class="perl plain">session_dir: </code><code class="perl string">"/tmp/dancer-sessions"</code></div><div class="line number7 index6 alt2"><code class="perl spaces"> </code><code class="perl plain">cookie_duration: 3600 </code><code class="perl comments"># Default cookie timeout in seconds</code></div></div></pre>
<br>
</body>
</html>