From: Jonathan Rockway Date: Sat, 22 Sep 2007 00:51:16 +0000 (+0000) Subject: update cookie BEFORE sending to user; change finalize to finalize_headers so that... X-Git-Tag: v0.19~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ccc7755380b06eda39a92a6b54d2446bbc35b6e3;hp=e3496e48c079f7f8248a07f627171a003e7b2e1b;p=catagits%2FCatalyst-Plugin-Session.git update cookie BEFORE sending to user; change finalize to finalize_headers so that expiry is extended even when streaming --- diff --git a/lib/Catalyst/Plugin/Session.pm b/lib/Catalyst/Plugin/Session.pm index 3d2ce93..3bc631d 100644 --- a/lib/Catalyst/Plugin/Session.pm +++ b/lib/Catalyst/Plugin/Session.pm @@ -89,14 +89,12 @@ sub prepare_action { $c->NEXT::prepare_action(@_); } -sub finalize { +sub finalize_headers { my $c = shift; - my $ret = $c->NEXT::finalize(@_); - $c->finalize_session; - return $ret; + return $c->NEXT::finalize_headers(@_); } sub finalize_session { @@ -745,7 +743,7 @@ It's only effect is if the (off by default) C configuration parameter is on - then it will copy the contents of the flash to the stash at prepare time. -=item finalize +=item finalize_headers This method is extended and will extend the expiry time, as well as persist the session data if a session exists.