From: Tomas Doran Date: Sun, 15 Jul 2012 17:34:47 +0000 (+0100) Subject: Fix tests X-Git-Tag: 0.36~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Session.git;a=commitdiff_plain;h=f4e8370cbb9a69d0ab69d705d112b54ed4839dd1 Fix tests --- diff --git a/lib/Catalyst/Plugin/Session.pm b/lib/Catalyst/Plugin/Session.pm index 20f6ee3..11d0adc 100644 --- a/lib/Catalyst/Plugin/Session.pm +++ b/lib/Catalyst/Plugin/Session.pm @@ -105,6 +105,11 @@ sub finalize_headers { # fix cookie before we send headers $c->_save_session_expires; + # Force extension of session_expires before finalizing headers, so a pos + # up to date. First call to session_expires will extend the expiry, subs + # just return the previously extended value. + $c->session_expires; + return $c->maybe::next::method(@_); }