On Thu, 4 Aug 2016 13:52:15 Amelia Ireland <[email protected]> wrote: > my $c = Dancer2::Core::Cookie->new( > name => 'return_to', > value => '/', > domain => config->{sso_domain}, > expires => '5 mins' > ); > > push_response_header 'Set-Cookie' => $c->to_header;
You're probably best just using the cookie keyword: cookie return_to => '/', expires => ..., domain => ... That said, using a cookie to set a redirect seems unnecessary. Can't you just put it in the redirect URL? Andy _______________________________________________ dancer-users mailing list [email protected] http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
