[Dancer-users] How to set cookies
Jonathan Otsuka
djgoku at gmail.com
Wed Mar 7 08:32:48 CET 2012
set_cookie 'name' => 'value', %opts
From http://perldancer.org/resources/dancer-cheat-sheet.pdf
I just googled 'perl dancer set cookie'
Jonathan Otsuka
On Mar 7, 2012, at 1:19 AM, GJ <gj at freeshell.org> wrote:
> How do I simply set a cookie? I'm talking about plain old cookies, not fancy
> session stuff. Right now, I'm doing:
>
> push_header( "Set-Cookie" => "baz=qux");
>
> inside a route and it's not working. Also, I'd like to set multiple key=value
> pairs. I want to set the cookies and redirect.
>
> Thanks,
> GJ
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120307/2ad8c0fa/attachment.htm>
More information about the Dancer-users
mailing list