<p dir="ltr">Which version of Dancer? </p>
<div class="gmail_quote">On Dec 4, 2014 12:15 PM, "Gabor Szabo" <<a href="mailto:gabor@szabgab.com">gabor@szabgab.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>in a Dancer application I have sessions turned on in config.yml</div><div>If the route calls template(), the session is created and the cookie is sent.</div><div><br></div><div>If I just "return 42" from the route without calling template(), the session is not created,</div><div>cookie is not sent.</div><div><br></div><div>I can force-create the session and the cookie by calling session('anything')</div><div><br></div><div>but I was wondering, is this behavior (that it is template() that sets the cookie) on purpose?</div><div><br></div><div>regards</div><div>    Gabor
</div><div><br></div></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div>