[dancer-users] Erroneous session-cookie setting behaviour in Dancer2

Henk van Oers hvo.pm at xs4all.nl
Sun Mar 3 17:46:25 GMT 2013


On Sun, 3 Mar 2013, Punter wrote:
> On 03/03/2013 06:52 PM, Henk van Oers wrote:
[look ma, no cookies :)]
>> 
>> I solved this problem by making 2 websites:
>> - "static" no session
>> - "dynamic" other hostname, other config.yml
>
> In my case, the same pages should appear on both sites, with tiny 
> differences. It would not be practical to maintain two sets of pages with 
> repeated elements for the cookie & no-cookie cases.

I think https://metacpan.org/module/Wallflower
can help.

Best served as file, no Perl.

get '/' => sub {
     template 'index';
};

is not required.

Mmmm, Dancer behind the Wallpaper ?

-- 
Henk


More information about the dancer-users mailing list