[Dancer-users] How to set cookies

David Precious davidp at preshweb.co.uk
Wed Mar 7 16:20:07 CET 2012


On Wed, 7 Mar 2012 15:13:53 +0000
GJ <gj at freeshell.org> wrote:

> Sorry, I wasn't being clear at all.  I know about the (multiple ways
> of) creating a cookie.  I want to know how people are _sending_
> _multiple_ cookies back with the response header. 

Call set_cookie as many times as you need; when the response is
generated, they should all be sent.

e.g.

  set_cookie foo => 'Foo!';
  set_cookie bar => 'Bar!';


-- 
David Precious ("bigpresh") <davidp at preshweb.co.uk>
http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan        www.preshweb.co.uk/github


More information about the Dancer-users mailing list