1 package TestApp::Controller::Engine::Response::Cookies;
4 use base 'Catalyst::Controller';
8 $c->res->cookies->{catalyst} = { value => 'cool', path => '/bah' };
9 $c->res->cookies->{cool} = { value => 'catalyst', path => '/' };
10 $c->forward('TestApp::View::Dump::Request');
14 my ( $self, $c ) = @_;
15 $c->res->cookies->{catalyst} = { value => 'cool', path => '/bah' };
16 $c->res->cookies->{cool} = { value => 'catalyst', path => '/' };
17 $c->res->redirect('http://www.google.com/');
21 my ( $self, $c ) = @_;
23 $c->res->cookies->{object} = CGI::Simple::Cookie->new(
24 -name => "this_is_the_real_name",
25 -value => [qw/foo bar/],
28 $c->res->cookies->{hash} = {
32 $c->forward('TestApp::View::Dump::Request');