[Dancer-users] How to set cookies

GJ gj at freeshell.org
Wed Mar 7 08:19:07 CET 2012


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


More information about the Dancer-users mailing list