Catalyst-Plugin-Starch
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/Starch/Cookie.pm view on Meta::CPAN
return $cookie;
}
=head2 update_session_cookie
This is called automatically by the C<finalize_headers> step in Catalyst. This method
is provided if you want to override the behavior.
=cut
sub update_session_cookie {
my ($c) = @_;
return if !$c->_has_sessionid();
my $cookie_name = $c->starch->cookie_name();
$c->res->cookies->{ $cookie_name } = $c->starch_state->cookie_args();
return;
}
after prepare_cookies => sub{
my ($c) = @_;
( run in 0.441 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )