[Dancer-users] Cookie handling

Deepak Gulati deepak.gulati at gmail.com
Wed Jan 5 18:06:23 CET 2011


Done:
https://github.com/sukria/Dancer/issues/#issue/248

Also, should I file a separate issue about my second point? Right now
set_cookie allows me to just set a single name value pair. It'd be
extremely convenient if it could take a hash reference or array as a
second value and do something with it. Right now passing a hash ref,
just causes it to set HASH0x.. as the cookie's value.

e.g. In Catalyst, I can write code like:

    $c->response->cookies->{oauth} = {
          value => {
              token => $nt->request_token,
              token_secret => $nt->request_token_secret,
          },
      };

Thanks,
Deepak

On Wed, Jan 5, 2011 at 9:36 PM, Alexis Sukrieh <sukria at sukria.net> wrote:
> Le 05/01/2011 17:03, sawyer x a écrit :
>>
>> I think Dancer has to take care of escaping here. There is no reason the
>> user should think about it.
>>
>> Just my opinion.
>
> I agree with SawyerX, a report on the issue tracker is welcome ;)
>
> --
> Alexis Sukrieh
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>


More information about the Dancer-users mailing list