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=15f8c810bd2bcd6a7c550558e294ba3ff00f695e;hb=ae33e13f7358be30696b7b24bc396982efc94040;hpb=c702e4cad3a7fd162125607fe4ff0c491d80e3a1 diff --git a/lib/Catalyst/Plugin/Session/State/Cookie.pm b/lib/Catalyst/Plugin/Session/State/Cookie.pm index 15f8c81..b0376b3 100644 --- a/lib/Catalyst/Plugin/Session/State/Cookie.pm +++ b/lib/Catalyst/Plugin/Session/State/Cookie.pm @@ -12,7 +12,7 @@ sub setup_session { my $c = shift; $c->NEXT::setup_session(@_); - $c->config->{session}{cookie_name} ||= Catalyst::Utils::appprefix( $c ); + $c->config->{session}{cookie_name} ||= Catalyst::Utils::appprefix( $c ) . '_session'; } sub finalize_cookies { @@ -128,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