X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session-State-Cookie.git;a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FSession%2FState%2FCookie.pm;h=b0376b3174197df942cabadbc4ecd5130908dc6d;hp=51727e2d6288ac613db3c977d5ea901ff3c9e1a3;hb=ae33e13f7358be30696b7b24bc396982efc94040;hpb=58730edcb664fc621cbb907b477d037c5c8576fa diff --git a/lib/Catalyst/Plugin/Session/State/Cookie.pm b/lib/Catalyst/Plugin/Session/State/Cookie.pm index 51727e2..b0376b3 100644 --- a/lib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/lib/Catalyst/Plugin/Session/State/Cookie.pm @@ -12,8 +12,7 @@ sub setup_session { my $c = shift; $c->NEXT::setup_session(@_); - - $c->config->{session}{cookie_name} ||= "session"; + $c->config->{session}{cookie_name} ||= Catalyst::Utils::appprefix( $c ) . '_session'; } sub finalize_cookies { @@ -129,7 +128,7 @@ Will set the C parameter to it's default value if it isn't set. =item cookie_name -The name of the cookie to store (defaults to C). +The name of the cookie to store (defaults to C). =item cookie_domain @@ -155,12 +154,17 @@ actually created the headers have already been sent to the client. L, L. -=head1 AUTHOR +=head1 AUTHORS + +This module is derived from L code, and +has been heavily modified since. -Sebastian Riedel ECE, -Marcus Ramberg ECE, -Andrew Ford ECE, -Yuval Kogman ECE +Andrew Ford +Andy Grundman +Christian Hansen +Yuval Kogman, C +Marcus Ramberg +Sebastian Riedel =head1 COPYRIGHT