[dancer-users] template() creates the session
Gabor Szabo
gabor at szabgab.com
Thu Dec 4 11:25:38 GMT 2014
$ mversion Dancer
1.3132
On Thu, Dec 4, 2014 at 1:20 PM, Sawyer X <xsawyerx at gmail.com> wrote:
> Which version of Dancer?
> On Dec 4, 2014 12:15 PM, "Gabor Szabo" <gabor at szabgab.com> wrote:
>
>> Hi,
>>
>> in a Dancer application I have sessions turned on in config.yml
>> If the route calls template(), the session is created and the cookie is
>> sent.
>>
>> If I just "return 42" from the route without calling template(), the
>> session is not created,
>> cookie is not sent.
>>
>> I can force-create the session and the cookie by calling
>> session('anything')
>>
>> but I was wondering, is this behavior (that it is template() that sets
>> the cookie) on purpose?
>>
>> regards
>> Gabor
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20141204/5b10569e/attachment.html>
More information about the dancer-users
mailing list