<div dir="ltr">
<p class=""><span class="">$ mversion Dancer</span></p>
<p class=""><span class="">1.3132</span></p><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 1:20 PM, Sawyer X <span dir="ltr"><<a href="mailto:xsawyerx@gmail.com" target="_blank">xsawyerx@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Which version of Dancer? </p>
<div class="gmail_quote"><div><div class="h5">On Dec 4, 2014 12:15 PM, "Gabor Szabo" <<a href="mailto:gabor@szabgab.com" target="_blank">gabor@szabgab.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div></blockquote></div></blockquote></div>
</div></div>