Catalyst::Plugin::Session::State::Cookie - doc cleanup + coverage
[catagits/Catalyst-Plugin-Session-State-Cookie.git] / lib / Catalyst / Plugin / Session / State / Cookie.pm
index 3ba6dd1..f1aaa8d 100644 (file)
@@ -36,6 +36,8 @@ sub finalize {
 sub prepare_cookies {
     my $c = shift;
 
+    my $ret = $c->NEXT::prepare_cookies(@_);
+
        my $cookie_name = $c->config->{session}{cookie_name};
 
     if ( my $cookie = $c->request->cookies->{$cookie_name} ) {
@@ -44,7 +46,7 @@ sub prepare_cookies {
         $c->log->debug(qq/Found sessionid "$sid" in cookie/) if $c->debug;
     }
 
-    $c->NEXT::prepare_cookies(@_);
+       return $ret;
 }
 
 __PACKAGE__
@@ -78,7 +80,12 @@ Will restore if an appropriate cookie is found.
 
 =item finalize
 
-Will set a cookie called C<session> if it doesn't exist or if it's value is not the current session id.
+Will set a cookie called C<session> if it doesn't exist or if it's value is not
+the current session id.
+
+=item setup_session
+
+Will set the C<cookie_name> parameter to it's default value if it isn't set.
 
 =back